[gluegen2] 04/05: Disable static linking.

Gilles Filippini pini at debian.org
Mon Oct 12 09:09:39 UTC 2015


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

pini pushed a commit to branch master
in repository gluegen2.

commit 8c0e70986222144988ac6fb817b12ab596f87cc2
Author: Gilles Filippini <pini at debian.org>
Date:   Mon Oct 12 10:59:27 2015 +0200

    Disable static linking.
---
 debian/changelog                           |  1 +
 debian/patches/disable-static-linking.diff | 42 ++++++++++++++++++++++++++++++
 debian/patches/series                      |  1 +
 3 files changed, 44 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 4bf81e7..9156573 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ gluegen2 (2.3.2-1) UNRELEASED; urgency=medium
   * Team upload.
   * New upstream release.
   * Refresh patches.
+  * New patch disable-static-linking.diff.
   * Patch missing-arch-symbol.diff: don't check at all for specific
     glibc symbol version in glibc-compat-symbols.h (fix FTBFS on
     armel and armel64).
diff --git a/debian/patches/disable-static-linking.diff b/debian/patches/disable-static-linking.diff
new file mode 100644
index 0000000..49d88c3
--- /dev/null
+++ b/debian/patches/disable-static-linking.diff
@@ -0,0 +1,42 @@
+Index: gluegen2/make/gluegen-cpptasks-base.xml
+===================================================================
+--- gluegen2.orig/make/gluegen-cpptasks-base.xml
++++ gluegen2/make/gluegen-cpptasks-base.xml
+@@ -1262,20 +1262,14 @@
+     <!-- Unix linker configuration -->
+ 
+     <linker id="linker.cfg.linux" name="${gcc.compat.compiler}">
+-      <linkerarg value="-static-libgcc" if="isGCC"/>
+-      <linkerarg value="-static-libstdc++" if="isGCC"/>
+     </linker>
+ 
+     <linker id="linker.cfg.linux.x86" name="${gcc.compat.compiler}">
+       <linkerarg value="-m32"/>
+-      <linkerarg value="-static-libgcc" if="isGCC"/>
+-      <linkerarg value="-static-libstdc++" if="isGCC"/>
+     </linker>
+ 
+     <linker id="linker.cfg.linux.amd64" name="${gcc.compat.compiler}">
+       <linkerarg value="-m64"/>
+-      <linkerarg value="-static-libgcc" if="isGCC"/>
+-      <linkerarg value="-static-libstdc++" if="isGCC"/>
+     </linker>
+ 
+     <!-- Using default compiler settings - utilize:
+@@ -1286,16 +1280,12 @@
+       <linkerarg value="-fpic" /> 
+       <linkerarg value="-nostdlib" />
+       <linkerarg value="-Bdynamic" />
+-      <linkerarg value="-static-libgcc" if="isGCC"/>
+-      <linkerarg value="-static-libstdc++" if="isGCC"/>
+     </linker>
+ 
+     <linker id="linker.cfg.linux.aarch64" name="${gcc.compat.compiler}">
+       <linkerarg value="-fpic" /> 
+       <linkerarg value="-nostdlib" />
+       <linkerarg value="-Bdynamic" />
+-      <linkerarg value="-static-libgcc" if="isGCC"/>
+-      <linkerarg value="-static-libstdc++" if="isGCC"/>
+     </linker>
+ 
+     <linker id="linker.cfg.linux.armv6.armhf" name="${gcc.compat.compiler}">
diff --git a/debian/patches/series b/debian/patches/series
index 237d982..f50284b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -22,3 +22,4 @@ missing-arch-symbol.diff
 
 fix-arm64-build-config.diff
 tests.diff
+disable-static-linking.diff

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



More information about the pkg-java-commits mailing list