Skip to content

Commit

Permalink
fix ctypes build for host
Browse files Browse the repository at this point in the history
  • Loading branch information
michalgr committed Sep 10, 2022
1 parent d59e0b2 commit b3bd92d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions projects/python/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ $(PYTHON_ANDROID_BUILD_DIR): $(PYTHON_HOST)
$(ANDROID_EXTRA_CONFIGURE_FLAGS) \
$(PYTHON_EXTRA_CONFIG_OPTIONS)

$(PYTHON_HOST_BUILD_DIR): \
export PKG_CONFIG_LIBDIR=$(abspath $(HOST_OUT_DIR)/lib/pkgconfig)
$(PYTHON_HOST_BUILD_DIR): $(HOST_CONFIG_SITE)
mkdir -p $@
cd $@ && $(PYTHON_SRCS)/configure \
Expand Down
2 changes: 1 addition & 1 deletion toolchain/config.site.host.template
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

test -z "$PKG_CONFIG_LIBDIR" && PKG_CONFIG_LIBDIR=<SITE_PATH>/lib/pkgconfig
test -z "$CFLAGS" && CFLAGS="-fPIC -I<SITE_PATH>/include $EXTRA_CFLAGS"
test -z "$LDFLAGS" && LDFLAGS="-L<SITE_PATH>/lib -L<SITE_PATH>/lib64 $EXTRA_LDFLAGS"
test -z "$LDFLAGS" && LDFLAGS="-L<SITE_PATH>/lib -L<SITE_PATH>/lib64 $EXTRA_LDFLAGS -Wl,-rpath,<SITE_PATH>/lib -Wl,-rpath,<SITE_PATH>/lib64"

0 comments on commit b3bd92d

Please sign in to comment.