use-gcc-for-llhttp
authorDebian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Fri, 8 Nov 2024 04:35:57 +0000 (04:35 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Fri, 8 Nov 2024 04:35:57 +0000 (04:35 +0000)
Gbp-Pq: Name use-gcc-for-llhttp.patch

llhttp/Makefile

index c7c34f521ad2a1278903e22e47364e9c75cf2ed5..286f008c4a25102f7ab04650806f7ea9c06f4942 100644 (file)
@@ -24,18 +24,18 @@ clean:
 
 build/libllhttp.so: build/c/llhttp.o build/native/api.o \
                build/native/http.o
-       $(CLANG) -shared $^ -Wl,-soname,$(SONAME) -o $@
+       gcc -shared $^ -Wl,-soname,$(SONAME) -o $@
 
 build/libllhttp.a: build/c/llhttp.o build/native/api.o \
                build/native/http.o
        $(AR) rcs $@ build/c/llhttp.o build/native/api.o build/native/http.o
 
 build/c/llhttp.o: build/c/llhttp.c
-       $(CLANG) $(CFLAGS) $(INCLUDES) -c $< -o $@
+       gcc $(CFLAGS) $(INCLUDES) -c $< -o $@
 
 build/native/%.o: src/native/%.c build/llhttp.h src/native/api.h \
                build/native
-       $(CLANG) $(CFLAGS) $(INCLUDES) -c $< -o $@
+       gcc $(CFLAGS) $(INCLUDES) -c $< -o $@
 
 build/llhttp.h: generate
 build/c/llhttp.c: generate