2009-09-17 13:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)

* bin/hb-func.sh
  * config/beos/libs.mk
  * config/global.mk
  * config/bsd/libs.mk
  * config/darwin/libs.mk
  * config/hpux/libs.mk
  * config/dos/djgpp.mk
  * config/linux/libs.mk
  * config/sunos/libs.mk
    * Renamed two variables to be in sync with latest changes:
      HB_CRS_LIB -> HB_LIBNAME_CURSES
      HB_SLN_LIB -> HB_LIBNAME_SLANG
        (this one is not honored by GNU Make system)
    ; TOFIX: Honor HB_LIBNAME_SLANG in GNU Make system? Is that
             needed in some cases?

  * config/dos/djgpp.mk
    + Synced system lib/libpath logic with libs.mk found on
      other platforms.
This commit is contained in:
Viktor Szakats
2009-09-17 11:00:58 +00:00
parent d1008fe5a0
commit 20f9b93b0f
10 changed files with 66 additions and 44 deletions

View File

@@ -17,6 +17,27 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-09-17 13:00 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* bin/hb-func.sh
* config/beos/libs.mk
* config/global.mk
* config/bsd/libs.mk
* config/darwin/libs.mk
* config/hpux/libs.mk
* config/dos/djgpp.mk
* config/linux/libs.mk
* config/sunos/libs.mk
* Renamed two variables to be in sync with latest changes:
HB_CRS_LIB -> HB_LIBNAME_CURSES
HB_SLN_LIB -> HB_LIBNAME_SLANG
(this one is not honored by GNU Make system)
; TOFIX: Honor HB_LIBNAME_SLANG in GNU Make system? Is that
needed in some cases?
* config/dos/djgpp.mk
+ Synced system lib/libpath logic with libs.mk found on
other platforms.
2009-09-17 12:35 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
- bin/pack_src.sh
+ mpkg_src.sh

View File

@@ -199,8 +199,8 @@ mk_hbtools()
else
HB_SYS_LIBS="-lm"
fi
HB_CRS_LIB=""
HB_SLN_LIB=""
HB_LIBNAME_CURSES=""
HB_LIBNAME_SLANG=""
if [ "${HB_USER_CFLAGS//-DHB_PCRE_REGEX/}" != "${HB_USER_CFLAGS}" ]; then
HB_SYS_LIBS="-lpcre ${HB_SYS_LIBS}"
hb_libs="${hb_libs//hbpcre/}"
@@ -222,24 +222,24 @@ mk_hbtools()
HB_SYS_LIBS="${HB_SYS_LIBS}"
HB_INC_X11="no"
else
HB_CRS_LIB=""
HB_LIBNAME_CURSES=""
if [ "${HB_PLATFORM}" = "linux" ]; then
HB_SYS_LIBS="${HB_SYS_LIBS} -ldl -lrt"
elif [ "${HB_PLATFORM}" = "sunos" ]; then
HB_SYS_LIBS="${HB_SYS_LIBS} -lrt"
HB_SYS_LIBS="${HB_SYS_LIBS} -lsocket -lnsl -lresolv"
HB_CRS_LIB="curses"
HB_LIBNAME_CURSES="curses"
elif [ "${HB_PLATFORM}" = "hpux" ]; then
HB_SYS_LIBS="${HB_SYS_LIBS} -lrt"
fi
if [ -n "${HB_CURSES_VER}" ]; then
HB_CRS_LIB="${HB_CURSES_VER}"
HB_LIBNAME_CURSES="${HB_CURSES_VER}"
elif [ "${HB_NCURSES_194}" = "yes" ]; then
HB_CRS_LIB="ncur194"
elif [ -z "${HB_CRS_LIB}" ]; then
HB_CRS_LIB="ncurses"
HB_LIBNAME_CURSES="ncur194"
elif [ -z "${HB_LIBNAME_CURSES}" ]; then
HB_LIBNAME_CURSES="ncurses"
fi
HB_SLN_LIB="slang"
HB_LIBNAME_SLANG="slang"
fi
if [ "${HB_USER_CFLAGS//-mlp64/}" != "${HB_USER_CFLAGS}" ]; then
CC_HB_USER_CFLAGS="${CC_HB_USER_CFLAGS} -mlp64"
@@ -526,11 +526,11 @@ if [ -f "\${HB_LIB_INSTALL}/libgtsln.a" ]; then
elif [ "\${HB_PLATFORM}" = "bsd" ]; then
SYSTEM_LIBS="\${SYSTEM_LIBS} -L/usr/local/lib"
fi
SYSTEM_LIBS="-l${HB_SLN_LIB:-slang} \${SYSTEM_LIBS}"
SYSTEM_LIBS="-l${HB_LIBNAME_SLANG:-slang} \${SYSTEM_LIBS}"
[ "\${HB_INC_GPM}" != "no" ] && HB_GPM_LIB="gpm"
fi
if [ -f "\${HB_LIB_INSTALL}/libgtcrs.a" ]; then
SYSTEM_LIBS="-l${HB_CRS_LIB:-ncurses} \${SYSTEM_LIBS}"
SYSTEM_LIBS="-l${HB_LIBNAME_CURSES:-ncurses} \${SYSTEM_LIBS}"
[ "\${HB_INC_GPM}" != "no" ] && HB_GPM_LIB="gpm"
fi
if [ "\${HB_INC_X11}" != "no" ]; then

View File

@@ -6,11 +6,11 @@ SYSLIBS :=
SYSLIBPATHS := /system/lib
ifneq ($(HB_LINKING_RTL),)
ifeq ($(HB_CRS_LIB),)
HB_CRS_LIB := ncurses
ifeq ($(HB_LIBNAME_CURSES),)
HB_LIBNAME_CURSES := ncurses
endif
ifneq ($(HB_HAS_CURSES),)
SYSLIBS += $(HB_CRS_LIB)
SYSLIBS += $(HB_LIBNAME_CURSES)
endif
ifneq ($(HB_HAS_SLANG),)
SYSLIBS += slang

View File

@@ -6,17 +6,17 @@ SYSLIBS :=
SYSLIBPATHS :=
ifneq ($(HB_LINKING_RTL),)
ifeq ($(HB_CRS_LIB),)
HB_CRS_LIB := ncurses
ifeq ($(HB_LIBNAME_CURSES),)
HB_LIBNAME_CURSES := ncurses
endif
ifneq ($(HB_HAS_CURSES),)
SYSLIBS += $(HB_CRS_LIB)
SYSLIBS += $(HB_LIBNAME_CURSES)
endif
ifneq ($(HB_HAS_SLANG),)
SYSLIBS += slang
# In BSD, slang still needs curses :(
ifneq ($(HB_HAS_CURSES),)
SYSLIBS += $(HB_CRS_LIB)
SYSLIBS += $(HB_LIBNAME_CURSES)
endif
endif
ifneq ($(HB_HAS_X11),)

View File

@@ -6,17 +6,17 @@ SYSLIBS :=
SYSLIBPATHS :=
ifneq ($(HB_LINKING_RTL),)
ifeq ($(HB_CRS_LIB),)
HB_CRS_LIB := ncurses
ifeq ($(HB_LIBNAME_CURSES),)
HB_LIBNAME_CURSES := ncurses
endif
ifneq ($(HB_HAS_CURSES),)
SYSLIBS += $(HB_CRS_LIB)
SYSLIBS += $(HB_LIBNAME_CURSES)
endif
ifneq ($(HB_HAS_SLANG),)
SYSLIBS += slang
# In BSD, slang still needs curses :(
ifneq ($(HB_HAS_CURSES),)
SYSLIBS += $(HB_CRS_LIB)
SYSLIBS += $(HB_LIBNAME_CURSES)
endif
SYSLIBPATHS += /sw/lib /opt/local/lib
endif

View File

@@ -32,27 +32,29 @@ ifeq ($(HB_BUILD_DEBUG),yes)
CFLAGS += -g
endif
LD := $(HB_CCPATH)$(HB_CCPREFIX)$(HB_CMP)$(HB_CCPOSTFIX)
LD_OUT := -o
LIBPATHS := -L$(LIB_DIR)
LDLIBS := $(foreach lib,$(LIBS),-l$(lib))
SYSLIBS :=
SYSLIBPATHS :=
ifneq ($(HB_LINKING_RTL),)
ifeq ($(HB_CRS_LIB),)
HB_CRS_LIB := pdcurses
ifeq ($(HB_LIBNAME_CURSES),)
HB_LIBNAME_CURSES := pdcurses
endif
ifneq ($(filter gtcrs, $(LIBS)),)
LDLIBS += -l$(HB_CRS_LIB)
SYSLIBS += $(HB_LIBNAME_CURSES)
endif
ifneq ($(HB_HAS_WATT),)
LIBPATHS += -L$(HB_LIB_WATT)
LDLIBS += -lwatt
SYSLIBPATHS += $(HB_LIB_WATT)
SYSLIBS += watt
endif
endif
LDLIBS += -lm
SYSLIBS += m
LD := $(HB_CCPATH)$(HB_CCPREFIX)$(HB_CMP)$(HB_CCPOSTFIX)
LD_OUT := -o
LIBPATHS := $(foreach dir,$(LIB_DIR) $(SYSLIBPATHS),-L$(dir))
LDLIBS := $(foreach lib,$(LIBS) $(SYSLIBS),-l$(lib))
# NOTE: The empty line directly before 'endef' HAVE TO exist!
# It causes that every command will be separated by LF

View File

@@ -248,7 +248,6 @@ ifeq ($(HB_INIT_DONE),)
# HB_BIN_COMPILE -> HB_BUILD_BIN_DIR
# HB_INC_COMPILE -> - (HB_BUILD_INC_DIR)
#
# HB_CRS_LIB -> HB_LIBNAME_CURSES
# HB_DIR_* -> HB_LIBDIR_* ? (only used for implib and a few .hbm files)
#
# HB_DLLIBS -> (only used in one location, so it's a local matter)

View File

@@ -6,11 +6,11 @@ SYSLIBS :=
SYSLIBPATHS :=
ifneq ($(HB_LINKING_RTL),)
ifeq ($(HB_CRS_LIB),)
HB_CRS_LIB := ncurses
ifeq ($(HB_LIBNAME_CURSES),)
HB_LIBNAME_CURSES := ncurses
endif
ifneq ($(HB_HAS_CURSES),)
SYSLIBS += $(HB_CRS_LIB)
SYSLIBS += $(HB_LIBNAME_CURSES)
endif
ifneq ($(HB_HAS_SLANG),)
SYSLIBS += slang

View File

@@ -6,11 +6,11 @@ SYSLIBS :=
SYSLIBPATHS :=
ifneq ($(HB_LINKING_RTL),)
ifeq ($(HB_CRS_LIB),)
HB_CRS_LIB := ncurses
ifeq ($(HB_LIBNAME_CURSES),)
HB_LIBNAME_CURSES := ncurses
endif
ifneq ($(HB_HAS_CURSES),)
SYSLIBS += $(HB_CRS_LIB)
SYSLIBS += $(HB_LIBNAME_CURSES)
endif
ifneq ($(HB_HAS_SLANG),)
SYSLIBS += slang

View File

@@ -6,11 +6,11 @@ SYSLIBS :=
SYSLIBPATHS :=
ifneq ($(HB_LINKING_RTL),)
ifeq ($(HB_CRS_LIB),)
HB_CRS_LIB := curses
ifeq ($(HB_LIBNAME_CURSES),)
HB_LIBNAME_CURSES := curses
endif
ifneq ($(HB_HAS_CURSES),)
SYSLIBS += $(HB_CRS_LIB)
SYSLIBS += $(HB_LIBNAME_CURSES)
endif
ifneq ($(HB_HAS_SLANG),)
SYSLIBS += slang