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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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),)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user