2010-04-22 18:41 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* config/postinst.prg
    ! Added hack to workaround the exception where mysql .dll doesn't 
      work with Harbour if copied to .a file. Instead I copy over the 
      import .lib to .a as before. If anyone knows a better solution, 
      pls speak up.
This commit is contained in:
Viktor Szakats
2010-04-22 16:42:19 +00:00
parent d308cb7a32
commit 0fbe571ed1
2 changed files with 12 additions and 1 deletions

View File

@@ -17,6 +17,13 @@
past entries belonging to author(s): Viktor Szakats.
*/
2010-04-22 18:41 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/postinst.prg
! Added hack to workaround the exception where mysql .dll doesn't
work with Harbour if copied to .a file. Instead I copy over the
import .lib to .a as before. If anyone knows a better solution,
pls speak up.
2010-04-22 18:32 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* src/common/hbtrace.c
! Fixed another typo in recent modifications.

View File

@@ -113,10 +113,14 @@ PROCEDURE Main()
ENDIF
NEXT
/* HACK: Copying .dll to .a doesn't work in case of mysql, so we copy over the supplied import lib. [vszakats] */
IF GetEnv( "HB_COMPILER" ) $ "mingw|mingw64"
hb_FCopy( GetEnv( "HB_WITH_MYSQL" ) + _PS_ + StrTran( "..\lib\opt\libmySQL.lib", "\", _PS_ ), GetEnv( "HB_LIB_INSTALL" ) + _PS_ + "liblibmysql.a" )
ENDIF
/* Exception: We use static libs with mingw */
IF GetEnv( "HB_COMPILER" ) == "mingw" .AND. ;
! Empty( GetEnv( "HB_WITH_OCILIB" ) )
hb_FCopy( GetEnv( "HB_WITH_OCILIB" ) + _PS_ + StrTran( "..\lib32\libociliba.a", "\", _PS_ ), GetEnv( "HB_LIB_INSTALL" ) + _PS_ + "libociliba.a" )
hb_FCopy( GetEnv( "HB_WITH_OCILIB" ) + _PS_ + StrTran( "..\lib32\libocilibm.a", "\", _PS_ ), GetEnv( "HB_LIB_INSTALL" ) + _PS_ + "libocilibm.a" )
hb_FCopy( GetEnv( "HB_WITH_OCILIB" ) + _PS_ + StrTran( "..\lib32\libocilibw.a", "\", _PS_ ), GetEnv( "HB_LIB_INSTALL" ) + _PS_ + "libocilibw.a" )