summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-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))