diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-07-30 10:34:27 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-07-30 10:36:27 +0200 |
commit | 84af438d8a3b52838b3bae53b8be6895b0714710 (patch) | |
tree | 6f3e8d83606d63b29d6bf409f0162152c577fa0e | |
parent | 5e635021b072db0bd3d30346a20faefec9c6ce94 (diff) |
remove la file mangling. packages should use pkg-config to find options for static linking
-rw-r--r-- | mk/package.mk | 8 | ||||
-rw-r--r-- | mk/pkg-bottom.mk | 9 |
2 files changed, 5 insertions, 12 deletions
diff --git a/mk/package.mk b/mk/package.mk index 8e30369cc..75d88c947 100644 --- a/mk/package.mk +++ b/mk/package.mk @@ -237,14 +237,10 @@ ifeq (,$(filter nostaging,$(7))) echo "$$$$x" | sed 's/^/- /' >&2; \ fi; \ find usr ! -type d 2>/dev/null | \ - grep -E -v -e '^usr/lib/pkgconfig' -e '^usr/share' -e '^usr/doc' -e '^usr/src' -e '^usr/man' -e '^usr/info' -e '^usr/lib/libc.so' -e '^usr/bin/[a-z0-9-]+-config' | \ + grep -E -v -e '^usr/lib/pkgconfig' -e '^usr/share' -e '^usr/doc' -e '^usr/src' -e '^usr/man' \ + -e '^usr/info' -e '^usr/lib/libc.so' -e '^usr/bin/[a-z0-9-]+-config' -e '^usr/lib/.*\.la$$$$' | \ tee '$${STAGING_PKG_DIR}/$(1)' | \ $(STAGING_HOST_DIR)/usr/bin/cpio -padlmu '$${STAGING_TARGET_DIR}' - @cd '$${STAGING_TARGET_DIR}'; grep 'usr/lib/.*\.la$$$$' \ - '$${STAGING_PKG_DIR}/$(1)' | while read fn; do \ - chmod u+w $$$$fn; \ - $(SED) "s,\(^libdir='\| \|-L\|^dependency_libs='\)/usr/lib,\1$(STAGING_TARGET_DIR)/usr/lib,g" $$$$fn; \ - done endif ifeq (,$(filter noscripts,$(7))) @cd '$${STAGING_TARGET_DIR}'; grep 'usr/s*bin/' \ diff --git a/mk/pkg-bottom.mk b/mk/pkg-bottom.mk index d816167e0..d81b8915c 100644 --- a/mk/pkg-bottom.mk +++ b/mk/pkg-bottom.mk @@ -199,14 +199,11 @@ endif ifeq (,$(filter nostaging,${PKG_OPTS})) @-cd ${WRKINST}; \ find usr ! -type d 2>/dev/null | \ - grep -E -v -e '^usr/share' -e '^usr/src' -e '^usr/doc' -e '^usr/local' -e '^usr/man' -e '^usr/info' -e '^usr/lib/libc.so' -e '^usr/bin/[a-z0-9-]+-config*' -e '^/usr/lib/libpthread_nonshared.a' | \ + grep -E -v -e '^usr/share' -e '^usr/src' -e '^usr/doc' -e '^usr/local' -e '^usr/man' -e '^usr/info' \ + -e '^usr/lib/libc.so' -e '^usr/bin/[a-z0-9-]+-config*' -e '^usr/lib/.*\.la$$' \ + -e '^/usr/lib/libpthread_nonshared.a' | \ tee '${STAGING_PKG_DIR}/${PKG_NAME}' | \ $(STAGING_HOST_DIR)/usr/bin/cpio -padlmu '${STAGING_TARGET_DIR}' - @cd '${STAGING_TARGET_DIR}'; grep 'usr/lib/.*\.la$$' \ - '${STAGING_PKG_DIR}/${PKG_NAME}' | while read fn; do \ - chmod u+w $$fn; \ - $(SED) "s,\(^libdir='\| \|-L\|^dependency_libs='\)/usr/lib,\1$(STAGING_TARGET_DIR)/usr/lib,g" $$fn; \ - done endif ifeq (,$(filter noscripts,${PKG_OPTS})) @cd '${STAGING_TARGET_DIR}'; grep 'usr/s*bin/' \ |