diff options
| author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-12-05 13:55:33 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-05 13:55:33 +1300 |
| commit | 8bda42cc12a11e7348abadc8288f0372191918cc (patch) | |
| tree | 63a7a072b5432c692f1aec91caf8d2c212bb2a5a /configure.ac | |
| parent | ebe3aadd69801ea911fb7ec6e2cfaa0777167d7c (diff) | |
| download | PROJ-8bda42cc12a11e7348abadc8288f0372191918cc.tar.gz PROJ-8bda42cc12a11e7348abadc8288f0372191918cc.zip | |
Merge pull request #2970 from mwtoews/static-extra-libs (#2971)
Refactor proj.pc to use EXTRA_LIBS; add -lpthread to Libs.private
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d3b1aa2d..f303cd77 100644 --- a/configure.ac +++ b/configure.ac @@ -325,7 +325,16 @@ dnl --------------------------------------------------------------------------- dnl Check for extra libraries, required for static linking with pkg-config dnl --------------------------------------------------------------------------- -EXTRA_LIBS="-lstdc++" +EXTRA_LIBS="-lstdc++ -lsqlite3" +if test "no$THREAD_LIB" != "no"; then + EXTRA_LIBS="$EXTRA_LIBS $THREAD_LIB" +fi +if test "x$enable_tiff" != "xno" -o "x$enable_tiff" = ""; then + EXTRA_LIBS="$EXTRA_LIBS -ltiff" +fi +if test "$FOUND_CURL" = "yes" ; then + EXTRA_LIBS="$EXTRA_LIBS -lcurl" +fi if test "$HAVE_LIBM" != "no" ; then EXTRA_LIBS="$EXTRA_LIBS -lm" fi |
