Author: mysqlpp
Date: Wed Apr  5 06:22:00 2006
New Revision: 1288

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1288&view=rev
Log:
Removed the 'cyg' vs. 'lib' fix.  It was needed only because we linked
directly to ../lib/libmysqlpp.{so,dll}.  Now we're using -L.. -lmysqlpp
as we should have done all along, which fixes this: the platform's
linker knows the shared library prefix, we don't have to tell it.

Also, converted previous cygwin platform check to suppress silly link
messages about how nice it's being to auto-import symbols for us.

Modified:
    trunk/configure.ac
    trunk/examples/examples.bkl

Modified: trunk/configure.ac
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/configure.ac?rev=1288&r1=1287&r2=1288&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Wed Apr  5 06:22:00 2006
@@ -73,18 +73,12 @@
 fi
 
 
-# Check whether this is Cygwin.  It names dlls with a 'cyg' prefix
-# instead of 'lib' used by the rest of the world for shared libraries.
+# If this is Cygwin, add a linker flag to suppress a silly link message.
 case "${host}" in
        *cygwin*)
-               MYSQLPP_LIB_PREFIX=cyg
+               LDFLAGS="$LDFLAGS -Wl,--enable-auto-import"
                ;;
-
-       *)
-               MYSQLPP_LIB_PREFIX=lib
 esac
-AC_SUBST(MYSQLPP_LIB_PREFIX)
-AC_MSG_RESULT(library prefix is $MYSQLPP_LIB_PREFIX)
 
 
 #

Modified: trunk/examples/examples.bkl
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/examples/examples.bkl?rev=1288&r1=1287&r2=1288&view=diff
==============================================================================
--- trunk/examples/examples.bkl (original)
+++ trunk/examples/examples.bkl Wed Apr  5 06:22:00 2006
@@ -35,7 +35,8 @@
                        <sys-lib>@MYSQL_C_LIB@</sys-lib>
 
                        <warnings>max</warnings>
-                       <ldlibs>../lib/@[EMAIL PROTECTED](SO_SUFFIX)</ldlibs>
+                       <ldflags>-L../lib</ldflags>
+                       <sys-lib>mysqlpp</sys-lib>
                        <if cond="ZLIB=='yes'">
                                <sys-lib>z</sys-lib>
                        </if>


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to