diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-03-14 09:01:13 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-03-14 09:01:13 +0000 |
commit | d1e4f21566b16f49b1c2807431ac921ddd608421 (patch) | |
tree | 22b5664f624ac0328cdebe583291bc7195a81f8a /libc/sysdeps/linux/common/Makefile | |
parent | 222e31faa0a3e2f5fb3c029e45b7b8092ffd5c74 (diff) |
Oops! When I fixed the debug flags, I forgot to make things be
PIC, so do that now.
-Erik
Diffstat (limited to 'libc/sysdeps/linux/common/Makefile')
-rw-r--r-- | libc/sysdeps/linux/common/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile index 0824b0e53..a322acf63 100644 --- a/libc/sysdeps/linux/common/Makefile +++ b/libc/sysdeps/linux/common/Makefile @@ -24,6 +24,11 @@ TOPDIR=../../../../ include $(TOPDIR)Rules.mak +SAFECFLAGS=-Os -fno-builtin +ifeq ($(strip $(DOPIC)),true) +SAFECFLAGS+=-fPIC +endif + CSRC= waitpid.c kernel_version.c statfix.c getdnnm.c gethstnm.c \ mkfifo.c setegid.c wait.c getpagesize.c seteuid.c \ wait3.c setpgrp.c getdtablesize.c create_module.c ptrace.c \ @@ -54,17 +59,17 @@ $(COBJS): %.o : %.c $(STRIPTOOL) -x -R .note -R .comment $*.o initfini.s: initfini.c - $(CC) -Os -fno-builtin -c initfini.c -S -o initfini.s + $(CC) $(SAFECFLAGS) -c initfini.c -S -o initfini.s crti.S crtn.S: initfini.s $(TOPDIR)/extra/scripts/initfini.pl crti.o: crti.S - $(CC) -Os -fno-builtin -c crti.S -o crti.o + $(CC) $(SAFECFLAGS) -c crti.S -o crti.o cp crti.o $(TOPDIR)lib/ crtn.o: crtn.S - $(CC) -Os -fno-builtin -c crtn.S -o crtn.o + $(CC) $(SAFECFLAGS) -c crtn.S -o crtn.o cp crtn.o $(TOPDIR)lib/ clean: |