diff --git a/harbour/ChangeLog b/harbour/ChangeLog index fb6b9eede7..98865749c6 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,13 @@ The license applies to all entries newer than 2009-04-28. */ +2011-02-10 21:50 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * src/dynlib/Makefile + * config/postinst.hbs + * config/global.mk + * config/bin.mk + * Cleaned up names after previous change. + 2011-02-10 19:18 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) - src/dynlib/mt * src/dynlib/Makefile @@ -36,7 +43,7 @@ internal build-time option: _HB_BUILD_DYN_ST=yes ; Please test. - ; TODO: Do a final cleanup on internal variable names to not have "ST" in them. + ; TODO: Do a final cleanup on internal variable names to not have "ST" in them. [DONE] 2011-02-10 13:33 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/make.hbs diff --git a/harbour/config/bin.mk b/harbour/config/bin.mk index 4d067f36c5..4908018f29 100644 --- a/harbour/config/bin.mk +++ b/harbour/config/bin.mk @@ -45,8 +45,8 @@ ifeq ($(BUILD_SHARED),yes) endif endif - HB_LIBS_ST_RDD := $(HB_LIBS_TPL) $(HB_DYNLIB_ST) - HB_LIBS_MT_RDD := $(HB_LIBS_TPL) $(HB_DYNLIB_ST) + HB_LIBS_ST_RDD := $(HB_LIBS_TPL) $(HB_DYNLIB_NAME) + HB_LIBS_MT_RDD := $(HB_LIBS_TPL) $(HB_DYNLIB_NAME) HB_LIBS_ST_NORDD := $(HB_LIBS_ST_RDD) HB_LIBS_MT_NORDD := $(HB_LIBS_ST_RDD) diff --git a/harbour/config/global.mk b/harbour/config/global.mk index 3bb82cb19f..658f41481e 100644 --- a/harbour/config/global.mk +++ b/harbour/config/global.mk @@ -1792,19 +1792,19 @@ ifeq ($(HB_INIT_DONE),) endif endif - HB_DYNLIB_BASE_ST := harbour + HB_DYNLIB_BASE := harbour ifeq ($(HB_PLATFORM),dos) - HB_DYNLIB_ST := $(HB_DYNLIB_BASE_ST) + HB_DYNLIB_NAME := $(HB_DYNLIB_BASE) else ifeq ($(HB_PLATFORM),os2) - HB_DYNLIB_ST := $(HB_DYNLIB_BASE_ST) + HB_DYNLIB_NAME := $(HB_DYNLIB_BASE) else - HB_DYNLIB_ST := $(HB_DYNLIB_BASE_ST)$(DYNNAME_POST) + HB_DYNLIB_NAME := $(HB_DYNLIB_BASE)$(DYNNAME_POST) endif endif - export HB_DYNLIB_BASE_ST - export HB_DYNLIB_ST + export HB_DYNLIB_BASE + export HB_DYNLIB_NAME endif endif diff --git a/harbour/config/postinst.hbs b/harbour/config/postinst.hbs index 0b62c3afe9..86ad6eced4 100644 --- a/harbour/config/postinst.hbs +++ b/harbour/config/postinst.hbs @@ -35,8 +35,8 @@ PROCEDURE Main( ... ) LOCAL cSH_Script LOCAL nAttr - LOCAL cST_Versioned - LOCAL cST_Versionless + LOCAL cDynVersioned + LOCAL cDynVersionless IF Empty( GetEnvC( "HB_PLATFORM" ) ) .OR. ; Empty( GetEnvC( "HB_COMPILER" ) ) .OR. ; @@ -136,10 +136,10 @@ PROCEDURE Main( ... ) OutStd( "! Creating dynamic lib symlinks..." + hb_eol() ) - cST_Versioned := GetEnvC( "HB_DYNLIB_PREF" ) + GetEnvC( "HB_DYNLIB_ST" ) + GetEnvC( "HB_DYNLIB_EXT" ) - cST_Versionless := GetEnvC( "HB_DYNLIB_PREF" ) + GetEnvC( "HB_DYNLIB_BASE_ST" ) + GetEnvC( "HB_DYNLIB_EXT" ) + cDynVersioned := GetEnvC( "HB_DYNLIB_PREF" ) + GetEnvC( "HB_DYNLIB_NAME" ) + GetEnvC( "HB_DYNLIB_EXT" ) + cDynVersionless := GetEnvC( "HB_DYNLIB_PREF" ) + GetEnvC( "HB_DYNLIB_BASE" ) + GetEnvC( "HB_DYNLIB_EXT" ) - mk_hb_FLinkSym( cST_Versioned, PathSepToSelf( GetEnvC( "HB_INSTALL_DYN" ) ) + hb_ps() + cST_Versionless ) + mk_hb_FLinkSym( cDynVersioned, PathSepToSelf( GetEnvC( "HB_INSTALL_DYN" ) ) + hb_ps() + cDynVersionless ) DO CASE CASE EndsWith( GetEnvC( "HB_INSTALL_DYN" ), "/usr/lib/harbour" ) .OR. ; @@ -147,8 +147,8 @@ PROCEDURE Main( ... ) EndsWith( GetEnvC( "HB_INSTALL_DYN" ), "/usr/local/lib/harbour" ) .OR. ; EndsWith( GetEnvC( "HB_INSTALL_DYN" ), "/usr/local/lib64/harbour" ) - mk_hb_FLinkSym( "harbour" + hb_ps() + cST_Versioned, PathSepToSelf( GetEnvC( "HB_INSTALL_DYN" ) ) + hb_ps() + ".." + hb_ps() + cST_Versionless ) - mk_hb_FLinkSym( "harbour" + hb_ps() + cST_Versioned, PathSepToSelf( GetEnvC( "HB_INSTALL_DYN" ) ) + hb_ps() + ".." + hb_ps() + cST_Versioned ) + mk_hb_FLinkSym( "harbour" + hb_ps() + cDynVersioned, PathSepToSelf( GetEnvC( "HB_INSTALL_DYN" ) ) + hb_ps() + ".." + hb_ps() + cDynVersionless ) + mk_hb_FLinkSym( "harbour" + hb_ps() + cDynVersioned, PathSepToSelf( GetEnvC( "HB_INSTALL_DYN" ) ) + hb_ps() + ".." + hb_ps() + cDynVersioned ) CASE GetEnvC( "HB_INSTALL_DYN" ) == "/usr/local/harbour/lib" /* TOFIX: Rewrite this in .prg */ @@ -464,10 +464,10 @@ STATIC FUNCTION mk_extern_core() LOCAL aExtern IF GetEnvC( "HB_REBUILD_EXTERN" ) == "yes" .AND. ; - ! Empty( GetEnvC( "HB_DYNLIB_ST" ) ) + ! Empty( GetEnvC( "HB_DYNLIB_NAME" ) ) /* TOFIX: Use list of libs instead of dynamic lib */ - IF ( aExtern := __hb_extern_get_list( PathSepToSelf( GetEnvC( "HB_DYNLIB_DIR" ) ) + hb_ps() + GetEnvC( "HB_DYNLIB_PREF" ) + GetEnvC( "HB_DYNLIB_ST" ) + GetEnvC( "HB_DYNLIB_EXT" ) ) ) != NIL + IF ( aExtern := __hb_extern_get_list( PathSepToSelf( GetEnvC( "HB_DYNLIB_DIR" ) ) + hb_ps() + GetEnvC( "HB_DYNLIB_PREF" ) + GetEnvC( "HB_DYNLIB_NAME" ) + GetEnvC( "HB_DYNLIB_EXT" ) ) ) != NIL OutStd( "! Generating core extern headers..." + hb_eol() ) diff --git a/harbour/src/dynlib/Makefile b/harbour/src/dynlib/Makefile index d4772e4fa3..a71a22fdd4 100644 --- a/harbour/src/dynlib/Makefile +++ b/harbour/src/dynlib/Makefile @@ -13,8 +13,8 @@ ifneq ($(DYNDIRLIST_BASE),) else DYNDIRLIST := $(DYNDIRLIST_BASE) src/vm/vmmt endif - DYNNAME := $(HB_DYNLIB_ST) - DYNNAME2 := $(HB_DYNLIB_BASE_ST) + DYNNAME := $(HB_DYNLIB_NAME) + DYNNAME2 := $(HB_DYNLIB_BASE) include $(TOP)$(ROOT)config/dyn.mk