Browse Source

sqlite3: remove $(FPIC)

Defaulting to -fPIC is a bad idea, especially for executables (here:
sqlite3-cli). In short, there are certain security implications as well
as overhead/performance penalties. Details see:

https://wiki.gentoo.org/wiki/Project:Hardened/Position_Independent_Code_internals

The configure script is able to detect the need for PIC and adds the
flag when needed anyway (when compiling the library).

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
lilik-openwrt-22.03
Sebastian Kemper 6 years ago
parent
commit
c565ad271b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libs/sqlite3/Makefile

+ 1
- 1
libs/sqlite3/Makefile View File

@ -75,7 +75,7 @@ $(call Package/sqlite3/Default/description)
formats.
endef
TARGET_CFLAGS += $(FPIC) \
TARGET_CFLAGS += \
-DSQLITE_ENABLE_UNLOCK_NOTIFY=1 \
-DHAVE_ISNAN=1 \
-DHAVE_MALLOC_USABLE_SIZE=1


Loading…
Cancel
Save