Skip to content

Commit

Permalink
do not use -Loracle_lib_dir2 if var not set
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@20945 f0d54148-0727-0410-94bb-9a71ac55c965
  • Loading branch information
warmerdam committed Oct 23, 2010
1 parent f884525 commit f0da83e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion m4/ax_oracle_oci.m4
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,11 @@ Please, locate Oracle directories using --with-oci or \
dnl Depending on later Oracle version detection,
dnl -lnnz10 flag might be removed for older Oracle < 10.x
saved_LDFLAGS="$LDFLAGS"
oci_ldflags="-L$oracle_lib_dir -L$oracle_lib_dir2 -lclntsh"
if test -n "$oracle_include_dir" ; then
oci_ldflags="-L$oracle_lib_dir -lclntsh"
else
oci_ldflags="-L$oracle_lib_dir -L$oracle_lib_dir2 -lclntsh"
fi
LDFLAGS="$LDFLAGS $oci_ldflags"
dnl
Expand Down

0 comments on commit f0da83e

Please sign in to comment.