[uClibc] precaution w/ propolice enabled gcc
Peter S. Mazinger
ps.m at gmx.net
Fri Apr 23 05:15:34 UTC 2004
Hello!
To be sure that those having propolice/ssp patched gcc do not use the
flags falsely on building uClibc I have used the attached patch (ld.so
can't be built elseway).
It would be necessary to add the same when libc is built (though not
needed for the other libs, like libm, libpthread). Could someone tell me
if there is such a place in uClibc, I couldn't find one that only applies
to libc.
Thanks, Peter
--
Peter S. Mazinger <ps dot m at gmx dot net> ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08 BB6E C389 975E A5F0 59F2
____________________________________________________________________
Miert fizetsz az internetert? Korlatlan, ingyenes internet hozzaferes a FreeStarttol.
Probald ki most! http://www.freestart.hu
-------------- next part --------------
--- ldso/ldso/Makefile.mps 2004-04-21 11:03:19.000000000 +0200
+++ ldso/ldso/Makefile 2004-04-21 11:05:34.000000000 +0200
@@ -22,14 +22,16 @@
LDSO_FULLNAME=ld-uClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
+SSPFLAGS=$(call check_gcc,-fno-stack-protector,)
+
XXFLAGS=$(XWARNINGS) $(OPTIMIZATION) $(XARCH_CFLAGS) $(CPU_CFLAGS) $(PICFLAG) \
-DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \
- -fno-builtin -nostdinc -I$(TOPDIR)ldso/include -I. -I$(TOPDIR)include
+ -fno-builtin -nostdinc $(SSPFLAGS) -I$(TOPDIR)ldso/include -I. -I$(TOPDIR)include
ifeq ($(SUPPORT_LD_DEBUG),y)
XXFLAGS=$(XWARNINGS) $(XARCH_CFLAGS) $(CPU_CFLAGS) $(PICFLAG) \
-DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" \
- -fno-builtin -nostdinc -I$(TOPDIR)ldso/include -I. -I$(TOPDIR)include
+ -fno-builtin -nostdinc $(SSPFLAGS) -I$(TOPDIR)ldso/include -I. -I$(TOPDIR)include
# Not really much point in including debugging info, since gdb
# can't really debug ldso, since gdb requires help from ldso to
# debug things....
More information about the uClibc
mailing list