quickjs: added fPIC flag

This commit is contained in:
Xiaofeng Meng 2025-12-03 09:57:18 +01:00 committed by Vivek Kumar Dutta
parent 83a5721b93
commit dc670b2621
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C

View file

@ -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