diff options
author | Clemens Lang <cal@macports.org> | 2015-03-15 07:21:00 +0100 |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2015-03-15 07:42:59 +0100 |
commit | d055e523d3bcbd5e0582a4ac537a168e1044c52c (patch) | |
tree | a196091739cd32fdec9277c1527b53d600f9df73 /debian/patches | |
parent | 8b45079eb73f323d5298555654440f4da2e77ca6 (diff) | |
download | nx-libs-d055e523d3bcbd5e0582a4ac537a168e1044c52c.tar.gz nx-libs-d055e523d3bcbd5e0582a4ac537a168e1044c52c.tar.bz2 nx-libs-d055e523d3bcbd5e0582a4ac537a168e1044c52c.zip |
nxcomp{,shad}: fix dynamic library linking on OS X. Use -dynamiclib instead of -bundle.
Adds:
- 0074_nxcomp_use-dynamiclib-flag-on-OS-X.full+lite.patch
- 0075_nxcompshad_use-dynamiclib-flag-on-OS-X.full+lite.patch
Diffstat (limited to 'debian/patches')
3 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/0074_nxcomp_use-dynamiclib-flag-on-OS-X.full+lite.patch b/debian/patches/0074_nxcomp_use-dynamiclib-flag-on-OS-X.full+lite.patch new file mode 100644 index 000000000..04369f0d7 --- /dev/null +++ b/debian/patches/0074_nxcomp_use-dynamiclib-flag-on-OS-X.full+lite.patch @@ -0,0 +1,19 @@ +Description: Fix dynamic library linking on OS X. Use -dynamiclib instead of -bundle. +Author: Clemens Lang <cal@macports.org> + +--- a/nxcomp/configure.in ++++ b/nxcomp/configure.in +@@ -183,11 +183,11 @@ if test "$FreeBSD" = yes; then + fi + + dnl Under Darwin we don't have support for -soname option and +-dnl we need the -bundle flag. Under Solaris, instead, we need ++dnl we need the -dynamiclib flag. Under Solaris, instead, we need + dnl the options -G -h. + + if test "$DARWIN" = yes; then +- LDFLAGS="$LDFLAGS -bundle" ++ LDFLAGS="$LDFLAGS -dynamiclib" + elif test "$SUN" = yes; then + LDFLAGS="$LDFLAGS -G -h \$(LIBLOAD)" + else diff --git a/debian/patches/0075_nxcompshad_use-dynamiclib-flag-on-OS-X.full+lite.patch b/debian/patches/0075_nxcompshad_use-dynamiclib-flag-on-OS-X.full+lite.patch new file mode 100644 index 000000000..a75424511 --- /dev/null +++ b/debian/patches/0075_nxcompshad_use-dynamiclib-flag-on-OS-X.full+lite.patch @@ -0,0 +1,19 @@ +Description: Fix dynamic library linking on OS X. Use -dynamiclib instead of -bundle. +Author: Clemens Lang <cal@macports.org> + +--- a/nxcompshad/configure.in ++++ b/nxcompshad/configure.in +@@ -175,11 +175,11 @@ if test "$FreeBSD" = yes; then + fi + + dnl Under Darwin we don't have support for -soname option and +-dnl we need the -bundle flag. Under Solaris, instead, we need ++dnl we need the -dynamiclib flag. Under Solaris, instead, we need + dnl the options -G -h. + + if test "$DARWIN" = yes; then +- LDFLAGS="$LDFLAGS -bundle" ++ LDFLAGS="$LDFLAGS -dynamiclib" + elif test "$SUN" = yes; then + LDFLAGS="$LDFLAGS -G -h \$(LIBLOAD)" + else diff --git a/debian/patches/series b/debian/patches/series index af1173630..9e2973870 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -36,6 +36,8 @@ 0071_nxcompext_use-MAKEDEPEND-in-path.full+lite.patch 0072_nxcompshad_use-MAKEDEPEND-in-path.full+lite.patch 0073_nxproxy_use-MAKEDEPEND-in-path.full+lite.patch +0074_nxcomp_use-dynamiclib-flag-on-OS-X.full+lite.patch +0075_nxcompshad_use-dynamiclib-flag-on-OS-X.full+lite.patch 0101_nxagent_set-rgb-path.full.patch 0102_xserver-xext_set-securitypolicy-path.full.patch 0103_nxagent_set-X0-config-path.full.patch |