Skip to content

Commit

Permalink
remove Mac LIBRARY_PATH override.
Browse files Browse the repository at this point in the history
it causes tcl's configure to configure CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc which requires full definition of system include and lib search paths (i.e., more than LIBRARY_PATH).  it doesn't work otherwise, resulting in basic failures like not finding system headers.  even with CPATH set, still needs more.  default compiler works, so reverting to see if the previous issue has an alternate solution or was temporary.
  • Loading branch information
brlcad committed Jan 26, 2025
1 parent 3948f11 commit a706f0f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tcl/tcl_configure.cmake.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
if (NOT WIN32)
if(APPLE)
# https://stackoverflow.com/a/70676858
set(ENV{LIBRARY_PATH} "@SDKROOT@/usr/lib")
endif(APPLE)
set(ENV{LD_LIBRARY_PATH} "@CMAKE_BUNDLE_INSTALL_PREFIX@/@LIB_DIR@")
set(ENV{CPPFLAGS} "-I@CMAKE_BUNDLE_INSTALL_PREFIX@/@INCLUDE_DIR@")
set(ENV{LDFLAGS} "-L@CMAKE_BUNDLE_INSTALL_PREFIX@/@LIB_DIR@")
Expand Down

0 comments on commit a706f0f

Please sign in to comment.