configure: simplify

This commit is contained in:
Juan RP 2020-02-06 09:48:30 +01:00
parent 3a0ca77264
commit 4c22511d17
No known key found for this signature in database
GPG Key ID: AF19F6CB482F9368

5
configure vendored
View File

@ -320,7 +320,7 @@ fi
check_compiler_flag "l,-z,relro,-z,now" W LDFLAGS check_compiler_flag "l,-z,relro,-z,now" W LDFLAGS
# #
# Check if -fPIE and -pie are supported if --build-pie is set. # Check if PIE is supported.
# #
check_compiler_flag PIE f PROG_CFLAGS check_compiler_flag PIE f PROG_CFLAGS
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
@ -376,8 +376,7 @@ echo "STATIC_LIBS = \$(TOPDIR)/lib/libxbps.a" >>$CONFIG_MK
# proplib # proplib
echo "CPPFLAGS += -I\$(TOPDIR)/lib/portableproplib" >>$CONFIG_MK echo "CPPFLAGS += -I\$(TOPDIR)/lib/portableproplib" >>$CONFIG_MK
echo "CPPFLAGS += -I\$(TOPDIR)/lib/portableproplib/prop" >>$CONFIG_MK echo "CPPFLAGS += -I\$(TOPDIR)/lib/portableproplib/prop" >>$CONFIG_MK
echo "LDFLAGS += -lpthread" >>$CONFIG_MK echo "CFLAGS += -pthread" >>$CONFIG_MK
echo "STATIC_LIBS += -lpthread" >>$CONFIG_MK
# #
# Check for GCC atomic builtins. # Check for GCC atomic builtins.