mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-27 17:37:18 +01:00
quickjs: added fPIC flag
This commit is contained in:
parent
83a5721b93
commit
dc670b2621
1 changed files with 4 additions and 0 deletions
|
|
@ -35,6 +35,10 @@ MAKE_FLAGS = \
|
||||||
EXTRA_LIBS="-latomic" \
|
EXTRA_LIBS="-latomic" \
|
||||||
CROSS_PREFIX="$(TARGET_CROSS)"
|
CROSS_PREFIX="$(TARGET_CROSS)"
|
||||||
|
|
||||||
|
# Ensure the static library is built with position independent code so it can
|
||||||
|
# be linked into shared objects.
|
||||||
|
TARGET_CFLAGS += -fPIC
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
# The upstream Makefile uses the same CFLAGS for host and target builds,
|
# The upstream Makefile uses the same CFLAGS for host and target builds,
|
||||||
# which breaks cross-compilation. We work around this by first building
|
# which breaks cross-compilation. We work around this by first building
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue