[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: WIN32 problem on liboctave/kpse.cc
From: |
Marco Atzeri |
Subject: |
Re: WIN32 problem on liboctave/kpse.cc |
Date: |
Fri, 20 Nov 2009 21:27:02 +0000 (GMT) |
--- Lun 16/11/09, John W. Eaton <address@hidden> ha scritto:
> The configure script currently has
[cut]
>
> ## autoconf test for LoadLibrary appears
> broken. Bypass for cygwin/mingw
> if $dlopen_api || $shl_load_api ||
> $loadlibrary_api || $dyld_api; then
> true
> else
> case "$canonical_host_type" in
> *-*-cygwin* | *-*-mingw* |
> *-*-msdosmsvc)
> loadlibrary_api=true;
> ;;
> esac
this solve the problem
@@ -1614,7 +1616,7 @@
true
else
case "$canonical_host_type" in
- *-*-cygwin* | *-*-mingw* | *-*-msdosmsvc)
+ *-*-mingw* | *-*-msdosmsvc)
loadlibrary_api=true;
;;
esac
>
> jwe
>
I still need to find a solution for linking static libs with libtool so likely
I will join libtool mailing list to find
some hint.
For the time being I am using the following "orrible"
hack
@@ -1808,6 +1810,19 @@
AC_DEFINE(RUSAGE_TIMES_ONLY, 1, [Define if your struct rusage only has
time information.])
;;
esac
+### A system dependent kluge on linking.
+
+case "$canonical_host_type" in
+ *-*-cygwin*)
+ if test -n $AMD_LIBS ;then AMD_LIBS=-Wl,$AMD_LIBS ;fi
+ if test -n $CAMD_LIBS ;then CAMD_LIBS=-Wl,$CAMD_LIBS ;fi
+ if test -n $CCOLAMD_LIBS ;then CCOLAMD_LIBS=-Wl,$CCOLAMD_LIBS ;fi
+ if test -n $CHOLMOD_LIBS ;then CHOLMOD_LIBS=-Wl,$CHOLMOD_LIBS ;fi
+ if test -n $COLAMD_LIBS ;then COLAMD_LIBS=-Wl,$COLAMD_LIBS ;fi
+ if test -n $CXSPARSE_LIBS ;then CXSPARSE_LIBS=-Wl,$CXSPARSE_LIBS"
-Wl,-lblas -Wl,-lcygwin" ;fi
+ if test -n $UMFPACK_LIBS ;then UMFPACK_LIBS=-Wl,$UMFPACK_LIBS ;fi
+ ;;
+esac
### Checks for other programs used for building, testing, installing,
### and running Octave.
Regards
Marco