[antlr] 20/87: * Provide static library compile with PIC (Closes: #351618). * Updated config.guess and config.sub (Closes: #352203).

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Tue Oct 24 14:49:17 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to branch master
in repository antlr.

commit 6fe1a74d7f0303202da3d5edc814ef1462165651
Author: Michael Koch <konqueror at gmx.de>
Date:   Sat Feb 11 10:00:56 2006 +0000

    * Provide static library compile with PIC (Closes: #351618).
    * Updated config.guess and config.sub (Closes: #352203).
---
 debian/changelog         | 7 +++++++
 debian/libantlr-dev.dirs | 1 +
 debian/rules             | 9 +++++++--
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6a0f31a..61b8a89 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+antlr (2.7.6-3) unstable; urgency=low
+
+  * Provide static library compile with PIC (Closes: #351618).
+  * Updated config.guess and config.sub (Closes: #352203).
+
+ -- Michael Koch <konqueror at gmx.de>  Sat, 11 Feb 2006 10:29:56 +0000
+
 antlr (2.7.6-2) unstable; urgency=low
 
   * Added Build-Depends on python.
diff --git a/debian/libantlr-dev.dirs b/debian/libantlr-dev.dirs
index e772481..527b78f 100644
--- a/debian/libantlr-dev.dirs
+++ b/debian/libantlr-dev.dirs
@@ -1 +1,2 @@
 usr/bin
+usr/lib
diff --git a/debian/rules b/debian/rules
index 5954da2..69fa332 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,7 +26,10 @@ build: configure build-stamp
 build-stamp:
 	dh_testdir
 	$(MAKE) -f debian/Makefile.debian make_with_gcj
-	cd lib/cpp; $(MAKE)
+	$(MAKE) -C lib/cpp CXXFLAGS="+ -fPIC -DPIC"
+	mv -f lib/cpp/src/libantlr.a debian/libantlr-pic.a
+	$(MAKE) -C lib/cpp clean
+	$(MAKE) -C lib/cpp
 	touch build-stamp
 
 clean:
@@ -43,6 +46,7 @@ clean:
 	-rm -f scripts/*.sh
 	-rm -f scripts/antlr-config scripts/config.deps scripts/antlr.spec scripts/config.make scripts/config.vars 
 	-rm -f antlr/Version.java
+	-rm -f debian/libantlr-pic.a
 	dh_clean
 
 install-indep: build-indep
@@ -59,7 +63,8 @@ install: build
 	dh_installdirs
 	install -m755 lib/python/antlr/antlr.py debian/antlr/usr/lib/python2.3/site-packages
 	install -m755 lib/python/antlr/antlr.py debian/antlr/usr/lib/python2.4/site-packages
-	( cd lib/cpp && $(MAKE) install prefix=`pwd`/../../debian/libantlr-dev/usr )
+	$(MAKE) -C lib/cpp install prefix=`pwd`/../../debian/libantlr-dev/usr
+	mv -f debian/libantlr-pic.a debian/libantlr-dev/usr/lib/
 	install -m755 scripts/antlr-config debian/libantlr-dev/usr/bin
 	install -m755 cantlr debian/cantlr/usr/bin
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/antlr.git



More information about the pkg-java-commits mailing list