Skip to content

Commit

Permalink
Fix compile and link issue found in pkgs environment
Browse files Browse the repository at this point in the history
  • Loading branch information
bgriffin42 committed Nov 23, 2023
1 parent 128cc27 commit 4dc7cdc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ PKG_CFLAGS = @PKG_CFLAGS@
# you do not compile with a similar machine setup as the Tcl core was
# compiled with.
#DEFS = $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS)
DEFS = @DEFS@ $(PKG_CFLAGS) -DITCL_LIBRARY="$(pkglibdir)"
DEFS = @DEFS@ $(PKG_CFLAGS) $(SHLIB_CFLAGS) -DITCL_LIBRARY="$(pkglibdir)"

# Move pkgIndex.tcl to 'BINARIES' var if it is generated in the Makefile
CONFIG_CLEAN_FILES = @CONFIG_CLEAN_FILES@ Makefile itclConfig.sh pkgIndex.tcl
Expand Down
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -5538,7 +5538,7 @@ printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h



vars="-I. -I\"`${CYGPATH} ${srcdir}/generic`\""
vars="-I. -I\"`${CYGPATH} ${srcdir}/generic`\" -I\"`${CYGPATH} ${srcdir}`\""
for i in $vars; do
PKG_INCLUDES="$PKG_INCLUDES $i"
done
Expand Down Expand Up @@ -9246,7 +9246,7 @@ eval itcl_SRC_DIR="$srcdir"
itcl_SRC_DIR=`cd "${itcl_SRC_DIR}"; pwd`


eval itcl_INCLUDE_SPEC="-I${itcl_SRC_DIR}/generic"
eval itcl_INCLUDE_SPEC="-I${itcl_SRC_DIR}/generic -I${itcl_SRC_DIR}"


#--------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ TEA_ADD_HEADERS([generic/itcl.h
generic/itcl2TclOO.h
generic/itclIntDecls.h
])
TEA_ADD_INCLUDES([-I. -I\"`${CYGPATH} ${srcdir}/generic`\"])
TEA_ADD_INCLUDES([-I. -I\"`${CYGPATH} ${srcdir}/generic`\" -I\"`${CYGPATH} ${srcdir}`\"])
TEA_ADD_LIBS([])
TEA_ADD_CFLAGS([])
TEA_ADD_STUB_SOURCES(itclStubLib.c)
Expand Down Expand Up @@ -263,7 +263,7 @@ eval itcl_SRC_DIR="$srcdir"
itcl_SRC_DIR=`cd "${itcl_SRC_DIR}"; pwd`
AC_SUBST(itcl_SRC_DIR)

eval itcl_INCLUDE_SPEC="-I${itcl_SRC_DIR}/generic"
eval itcl_INCLUDE_SPEC="-I${itcl_SRC_DIR}/generic -I${itcl_SRC_DIR}"
AC_SUBST(itcl_INCLUDE_SPEC)

#--------------------------------------------------------------------
Expand Down

0 comments on commit 4dc7cdc

Please sign in to comment.