[Pkg-voip-commits] [pjproject] 28/42: Remove offending build flags from pkgconfig file
tzafrir at debian.org
tzafrir at debian.org
Sat Nov 1 17:13:56 UTC 2014
This is an automated email from the git hooks/post-receive script.
tzafrir pushed a commit to branch master-2.3
in repository pjproject.
commit 984f88fcd1953383ea05cb0aaeed49b017c643b5
Author: Tzafrir Cohen <tzafrir at debian.org>
Date: Fri Oct 31 13:40:18 2014 +0200
Remove offending build flags from pkgconfig file
---
debian/rules | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/debian/rules b/debian/rules
index 32b545a..80b77ce 100755
--- a/debian/rules
+++ b/debian/rules
@@ -37,10 +37,19 @@ override_dh_auto_build:
dh_auto_build -- dep all
#pybuild -d pjsip-apps/src/python
+PC_FILE=$(CURDIR)/debian/tmp/usr/lib/*/pkgconfig/libpjproject.pc
override_dh_auto_install:
dh_auto_install
# Disable it for now. This will wait (and be done properly) in
# later versions:
#pybuild -d pjsip-apps/src/python --install
+ # FIXME: the proper fix is in the generation of libpjproject.pc.in:
+ # PJ_INSTALL_CXXFLAGS (which is basically CFLAGS) should not be used
+ # as-is. Maybe it should just be avoided and a hand-crafted set
+ # of build flags should be used. But for now let's edit out harmful
+ # flags:
+ sed -i \
+ -e "s|$$CFLAGS||" -e "s|$$CPPFLAGS||" -e 's|-fPIC||' \
+ $(PC_FILE)
.PHONY: build
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/pjproject.git
More information about the Pkg-voip-commits
mailing list