Files
llvm-mingw/libssp-Makefile
T
Martin Storsjö c9db1e06b5 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.
2018-04-23 00:26:05 +03:00

17 lines
336 B
Plaintext

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