Build libssp from gcc
gcc/libssp's configure script runs checks for flags that clang doesn't implement. We actually just need to set a few HAVE defines and compile the .c sources, so just check out this subdirectory using svn and build it using a custom makefile.
This commit is contained in:
1 parent
61eaf3a0de
commit
c9db1e06b5
6 files changed
+70
-3
No files matched your search
@@ -0,0 +1,16 @@
|
||||
SRC_PATH=$(word 1, $(dir $(MAKEFILE_LIST)))
|
||||
vpath %.c $(SRC_PATH)
|
||||
|
||||
CC = $(CROSS)gcc
|
||||
AR = $(CROSS)ar
|
||||
|
||||
CFLAGS = -O2 -Wall -Wundef -I$(SRC_PATH) -D_FORTIFY_SOURCE=0 -D__SSP_FORTIFY_LEVEL=0
|
||||
|
||||
SOURCES = $(patsubst $(SRC_PATH)%,%,$(wildcard $(SRC_PATH)*.c))
|
||||
OBJS = $(SOURCES:%.c=%.o)
|
||||
|
||||
libssp.a: $(OBJS)
|
||||
$(AR) rcs $@ $+
|
||||
|
||||
clean:
|
||||
rm -f *.a *.o
|
||||
Reference in new issue
Block a user