Fix previous and make sure that we build PIE binaries.
(cherry picked from commit 1b9dd30d7b590e219cb51561f1e7371f4628575f)
This commit is contained in:
parent
886807687e
commit
6d6d31ccc0
1
configure
vendored
1
configure
vendored
@ -302,7 +302,6 @@ if [ $? -eq 0 ]; then
|
|||||||
check_compiler_flag pie "" PROG_LDFLAGS
|
check_compiler_flag pie "" PROG_LDFLAGS
|
||||||
fi
|
fi
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
echo "Building programs as PIE (Position Independent Executable)."
|
|
||||||
BUILD_PIE_VALUE=yes
|
BUILD_PIE_VALUE=yes
|
||||||
else
|
else
|
||||||
BUILD_PIE_VALUE=no
|
BUILD_PIE_VALUE=no
|
||||||
|
@ -49,6 +49,7 @@ $(BIN).static: $(OBJS)
|
|||||||
|
|
||||||
$(BIN): $(OBJS)
|
$(BIN): $(OBJS)
|
||||||
@printf " [CCLD]\t\t$@\n"
|
@printf " [CCLD]\t\t$@\n"
|
||||||
${SILENT}$(CC) $^ $(CPPFLAGS) -L$(TOPDIR)/lib $(CFLAGS) \
|
${SILENT}$(CC) $^ $(CPPFLAGS) -L$(TOPDIR)/lib \
|
||||||
$(PROG_CFLAGS) $(LDFLAGS) -lxbps -o $@
|
$(CFLAGS) $(PROG_CFLAGS) $(LDFLAGS) $(PROG_LDFLAGS) \
|
||||||
|
-lxbps -o $@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user