File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,11 +61,9 @@ build:
6161 - --with-binutils={{deps.gnu.org/binutils.prefix}}/bin
6262 # ChatGPT
6363 - --disable-multi-arch
64- CFLAGS : -O2
65- linux/x86-64 :
66- CFLAGS : -O2 -fPIC
67- CXXFLAGS : -O2 -fPIC
68- LDFLAGS : -pie
64+ CFLAGS : -O2 -fPIC
65+ CXXFLAGS : -O2 -fPIC
66+ LDFLAGS : -pie
6967
7068test :
7169 dependencies :
7977 # Putting ourselves in the LD_LIBRARY_PATH breaks literally everything else...
8078 - export LD_LIBRARY_PATH="$(echo LD_LIBRARY_PATH | tr ':' '\n' | grep -v {{prefix}} | tr '\n' ':')"
8179
82- - gcc -o test1 test.c -pthread $CFLAGS
80+ - gcc -o test1 test.c -pthread -fPIC -pie
8381 - ./test1
8482
8583 - find {{deps.gnu.org/gcc.prefix}} -name stdatomic.h
9997 {{prefix}}/lib/crt1.o \
10098 {{prefix}}/lib/crtn.o \
10199 test.c \
102- -pthread
100+ -pthread \
101+ -fPIC \
102+ -pie
103103 - objdump -p test2
104104 - ./test2
105105
You can’t perform that action at this time.
0 commit comments