107 |
cd ${SRCDIR} |
cd ${SRCDIR} |
108 |
|
|
109 |
# fix a test case that fails when built using gcc-5.x |
# fix a test case that fails when built using gcc-5.x |
110 |
sed -i '/tst-audit2-ENV/i CFLAGS-tst-audit2.c += -fno-builtin' elf/Makefile || die |
#sed -i '/tst-audit2-ENV/i CFLAGS-tst-audit2.c += -fno-builtin' elf/Makefile || die |
111 |
|
|
112 |
# fixes an infinite loop while syscall.d creation |
# fixes an infinite loop while syscall.d creation |
113 |
# see: http://sourceware.org/bugzilla/show_bug.cgi?id=15711 |
# see: http://sourceware.org/bugzilla/show_bug.cgi?id=15711 |
121 |
# /usr/src/glibc-2.16.0.bld/ |
# /usr/src/glibc-2.16.0.bld/ |
122 |
# Unmatched ( in regex; marked by <-- HERE in m/$( <-- HERE if $(abi-32-ld-soname),$(abi-32-ld-soname),ld/ at scripts/test-installation.pl line 172, <LDD> |
# Unmatched ( in regex; marked by <-- HERE in m/$( <-- HERE if $(abi-32-ld-soname),$(abi-32-ld-soname),ld/ at scripts/test-installation.pl line 172, <LDD> |
123 |
# line 1 |
# line 1 |
124 |
sed -i 's:CC="$(CC)" $(PERL) scripts/test-installation.pl $(common-objpfx)::' Makefile || die |
#sed -i 's:CC="$(CC)" $(PERL) scripts/test-installation.pl $(common-objpfx)::' Makefile || die |
125 |
|
|
126 |
# binutils patch needs reconf |
# binutils patch needs reconf |
127 |
# autoconf --force || die |
# autoconf --force || die |
174 |
# enable static pie |
# enable static pie |
175 |
myopts+=" --enable-static-pie" |
myopts+=" --enable-static-pie" |
176 |
# enable intel cet + branch tracking (IBT) and shadow stack (SHSTK) |
# enable intel cet + branch tracking (IBT) and shadow stack (SHSTK) |
177 |
myopts+=" --enable-cet" |
# myopts+=" --enable-cet" |
178 |
|
|
179 |
# remove fortify for building libraries |
# remove fortify for building libraries |
180 |
export CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/} |
export CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/} |