summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-20 09:12:42 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-20 09:12:42 +0000
commit516a518c9dfdbdc3c930626f8eeef3d0b4d71236 (patch)
tree8a004c2eaff5c1e55f17fe5880c631ade0fbf836 /libc/sysdeps
parent63abaebc01df9185aa1a044611296d626a9eca1a (diff)
- make sure to build crti and crtn with PICFLAG
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/Makefile.commonarch3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/Makefile.commonarch b/libc/sysdeps/linux/Makefile.commonarch
index ff3e90aa7..1c616ec4a 100644
--- a/libc/sysdeps/linux/Makefile.commonarch
+++ b/libc/sysdeps/linux/Makefile.commonarch
@@ -20,6 +20,9 @@ libc-y += $(ARCH_OBJS)
libc-nomulti-y += $(ARCH_SOBJ)
objclean-y += arch_objclean
+CFLAGS-crti.S+=$(PICFLAG)
+CFLAGS-crtn.S+=$(PICFLAG)
+
arch_objclean:
$(RM) $(ARCH_OUT)/*.{o,os} $(CTOR_TARGETS) $(CRTS)