summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-11 18:31:26 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-11 18:31:26 +0000
commit50143b1b6f026d55bfc9156b84c3dee0773e47f5 (patch)
treee1cc038596ce086412d286f15fb3e903dd8702f6
parent73649ffabcf481cc0e2f668062526931d5040901 (diff)
Allow building uClibc w/ make-3.79.1 if SSP is disabled
-rw-r--r--libc/misc/internals/Makefile2
-rw-r--r--libc/sysdeps/linux/common/Makefile2
2 files changed, 3 insertions, 1 deletions
diff --git a/libc/misc/internals/Makefile b/libc/misc/internals/Makefile
index 1df05a934..fc5ca267b 100644
--- a/libc/misc/internals/Makefile
+++ b/libc/misc/internals/Makefile
@@ -27,7 +27,9 @@ include $(TOPDIR)Rules.mak
CSRC=__uClibc_main.c tempname.c errno.c __errno_location.c __h_errno_location.c
COBJS=$(patsubst %.c,%.o, $(CSRC))
+ifeq ($(UCLIBC_HAS_SSP),y)
__uClibc_main.o: CFLAGS += $(SSP_DISABLE_FLAGS)
+endif
OBJS=$(COBJS)
diff --git a/libc/sysdeps/linux/common/Makefile b/libc/sysdeps/linux/common/Makefile
index 87791724a..44014979d 100644
--- a/libc/sysdeps/linux/common/Makefile
+++ b/libc/sysdeps/linux/common/Makefile
@@ -31,9 +31,9 @@ SRCS := $(filter-out ssp.c,$(SRCS))
NONSHARED_OBJ_LIST=
else
NONSHARED_OBJ_LIST=../../../nonshared_obj.sysdeps.common
-endif
ssp.o: CFLAGS += $(SSP_DISABLE_FLAGS)
ssp-local.o: CFLAGS += $(SSP_DISABLE_FLAGS)
+endif
OBJS = $(patsubst %.c,%.o, $(SRCS))