File wcc-0.0.2-flags.patch of Package wcc
Index: wcc-0.0.2/Makefile =================================================================== --- wcc-0.0.2.orig/Makefile +++ wcc-0.0.2/Makefile @@ -7,7 +7,7 @@ # This file is licensed under MIT License. # -CFLAGS := -W -Wall -Wno-discarded-qualifiers -Wno-int-conversion -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -fpie -pie -fPIC -g3 -ggdb -I../../include -I./include/sflib/ -I./include -I../../include/ -Wno-incompatible-pointer-types -fstack-protector-all -Wl,-z,relro,-z,now -DPACKAGE -DPACKAGE_VERSION -masm=intel -rdynamic -D_fORTIFY_SOURCE=2 -O2 +CFLAGS := $(RPM_OPT_FLAGS) -W -Wall -Wno-discarded-qualifiers -Wno-int-conversion -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -fpie -pie -fPIC -g3 -ggdb -I../../include -I./include/sflib/ -I./include -I../../include/ -Wno-incompatible-pointer-types -fstack-protector-all -Wl,-z,relro,-z,now -DPACKAGE -DPACKAGE_VERSION -masm=intel -rdynamic -D_fORTIFY_SOURCE=2 -O2 all: mkdir -p bin Index: wcc-0.0.2/src/wcc/Makefile =================================================================== --- wcc-0.0.2.orig/src/wcc/Makefile +++ wcc-0.0.2/src/wcc/Makefile @@ -26,7 +26,7 @@ WCC := ./wcc FILE := file all:: - $(CC) $(CFLAGS) wcc.c -o wcc -lbfd -lelf -lcapstone + $(CC) $(CFLAGS) -fpie -fPIC wcc.c -o wcc -lbfd -lelf -lcapstone -liberty -lz -ldl # $(CC) $(CFLAGS) -m32 -Wl,-rpath /home/jonathan/solution-exp/unlinking/awareness/self/wcc/src/wcc/lib32/ wcc.c -o wcc32 -lelf ./lib32/libbfd-2.24-system.so ./lib32/libcapstone.so.3 cp wcc ../../bin/