Don't build static bins with PIE, only for dynamic.

This commit is contained in:
Juan RP 2011-01-19 16:52:55 +01:00
parent 8dc6926664
commit fcbe7f113b
2 changed files with 3 additions and 5 deletions

4
configure vendored
View File

@ -203,9 +203,7 @@ check_compiler_flag()
local var="$3"
local rv=0
if [ -z "$var" ]; then
var="CFLAGS"
fi
[ -z "$var" ] && var="CFLAGS"
printf "Checking if $CC supports -${mode}${flag} ... "
cat <<EOF >_ccflag.c

View File

@ -1,7 +1,6 @@
-include $(TOPDIR)/config.mk
OBJS ?= main.o
CFLAGS += $(PROG_CFLAGS)
.PHONY: all
all: $(BIN) $(BIN).static
@ -40,5 +39,6 @@ $(BIN).static: $(OBJS)
$(BIN): $(OBJS)
@printf " [CCLD]\t\t$@\n"
${SILENT}$(CC) $^ $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(PROG_LDFLAGS) -o $@
${SILENT}$(CC) $^ $(CPPFLAGS) $(CFLAGS) $(PROG_CFLAGS) \
$(LDFLAGS) $(PROG_LDFLAGS) -o $@