]> git.pld-linux.org Git - packages/libgphoto2.git/commitdiff
- fix libltdl detection with -as-needed
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 11 Aug 2007 17:57:52 +0000 (17:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    libgphoto2-link.patch -> 1.1

libgphoto2-link.patch [new file with mode: 0644]

diff --git a/libgphoto2-link.patch b/libgphoto2-link.patch
new file mode 100644 (file)
index 0000000..11ddeda
--- /dev/null
@@ -0,0 +1,44 @@
+--- libgphoto2-2.4.0/m4m/gp-libltdl.m4.orig    2007-07-27 02:36:39.000000000 +0200
++++ libgphoto2-2.4.0/m4m/gp-libltdl.m4 2007-08-11 13:24:49.497715037 +0200
+@@ -34,9 +34,9 @@ dnl Make sure we can actually compile an
+ AC_LANG_PUSH([C])
+ AC_MSG_CHECKING([that we can compile and link with libltdl])
+ saved_CPPFLAGS="$CPPFLAGS"
+-saved_LDFLAGS="$LDFLAGS"
++saved_LIBS="$LIBS"
+ CPPFLAGS="$CPPFLAGS $LTDLINCL"
+-LDFLAGS="$LDFLAGS $LIBLTDL"
++LIBS="$LIBS $LIBLTDL"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([dnl
+ #include <stdlib.h> /* for NULL */
+ #include <ltdl.h>   /* for lt_* */
+@@ -51,6 +51,6 @@ Aborting.
+ ])
+ ])
+ CPPFLAGS="$saved_CPPFLAGS"
+-LDFLAGS="$saved_LDFLAGS"
++LIBS="$saved_LIBS"
+ AC_LANG_POP
+ ])dnl
+--- libgphoto2-2.4.0/libgphoto2_port/m4/gp-libltdl.m4.orig     2007-07-27 02:36:28.000000000 +0200
++++ libgphoto2-2.4.0/libgphoto2_port/m4/gp-libltdl.m4  2007-08-11 13:25:14.747153921 +0200
+@@ -34,9 +34,9 @@ dnl Make sure we can actually compile an
+ AC_LANG_PUSH([C])
+ AC_MSG_CHECKING([that we can compile and link with libltdl])
+ saved_CPPFLAGS="$CPPFLAGS"
+-saved_LDFLAGS="$LDFLAGS"
++saved_LIBS="$LIBS"
+ CPPFLAGS="$CPPFLAGS $LTDLINCL"
+-LDFLAGS="$LDFLAGS $LIBLTDL"
++LIBS="$LIBS $LIBLTDL"
+ AC_LINK_IFELSE([AC_LANG_PROGRAM([dnl
+ #include <stdlib.h> /* for NULL */
+ #include <ltdl.h>   /* for lt_* */
+@@ -51,6 +51,6 @@ Aborting.
+ ])
+ ])
+ CPPFLAGS="$saved_CPPFLAGS"
+-LDFLAGS="$saved_LDFLAGS"
++LIBS="$saved_LIBS"
+ AC_LANG_POP
+ ])dnl
This page took 0.348487 seconds and 4 git commands to generate.