Skip to content

Commit 98962f1

Browse files
committed
wip
1 parent 7093fe7 commit 98962f1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

projects/gnu.org/glibc/package.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff 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

7068
test:
7169
dependencies:
@@ -79,7 +77,7 @@ test:
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
@@ -99,7 +97,9 @@ test:
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

0 commit comments

Comments
 (0)