]> granicus.if.org Git - postgis/commitdiff
Move library link to appropriate place.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 18 Nov 2011 00:29:19 +0000 (00:29 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 18 Nov 2011 00:29:19 +0000 (00:29 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8168 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac

index 702ac78456e46871d8ae745dd2a79ed7239c3e24..443d98de55f99d544d063fb7e4a75a7bc5fe9cd3 100644 (file)
@@ -638,7 +638,7 @@ if test ! "x$JSONDIR" = "x"; then
 
                        dnl Add the include directory to JSON_CPPFLAGS
                        JSON_CPPFLAGS="-I$JSONDIR/include"
-                       JSON_LDFLAGS="-L$JSONDIR/lib"
+                       JSON_LDFLAGS="-L$JSONDIR/lib -ljson"
 
                        dnl Check that we can find the json/json.h header file
                        CPPFLAGS_SAVE="$CPPFLAGS"
@@ -759,7 +759,7 @@ AC_DEFINE_UNQUOTED([POSTGIS_USE_STATS], [1], [Enable use of ANALYZE statistics])
 CPPFLAGS="$PGSQL_CPPFLAGS $GEOS_CPPFLAGS $PROJ_CPPFLAGS $JSON_CPPFLAGS $XML2_CPPFLAGS"
 dnl AC_MSG_RESULT([CPPFLAGS: $CPPFLAGS])
 
-SHLIB_LINK="$PGSQL_LDFLAGS $GEOS_LDFLAGS $PROJ_LDFLAGS -lgeos_c -lproj $JSON_LDFLAGS -ljson $XML2_LDFLAGS"
+SHLIB_LINK="$PGSQL_LDFLAGS $GEOS_LDFLAGS $PROJ_LDFLAGS -lgeos_c -lproj $JSON_LDFLAGS $XML2_LDFLAGS"
 AC_SUBST([SHLIB_LINK])
 dnl AC_MSG_RESULT([SHLIB_LINK: $SHLIB_LINK])