Browse Source

Allow building uClibc w/ make-3.79.1 if SSP is disabled

Peter S. Mazinger 18 years ago
parent
commit
50143b1b6f
2 changed files with 3 additions and 1 deletions
  1. 2 0
      libc/misc/internals/Makefile
  2. 1 1
      libc/sysdeps/linux/common/Makefile

+ 2 - 0
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)
 

+ 1 - 1
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))