Tcl Extension Architecture (TEA) Sample Extension

View Ticket
Login
Ticket UUID: 878ab2fa0417e29b47723c97fd6f69d439d14a58
Title: -DUSE_TCL_STUBS=1 not in CPPFLAGS on Mac OSX
Type: Bug Version: trunk
Submitter: anonymous Created on: 2017-06-30 20:03:25
Subsystem: - New Builtin Commands Assigned To: nobody
Priority: 5 Medium Severity: Critical
Status: Open Last Modified: 2017-06-30 20:03:25
Resolution: None Closed By: nobody
    Closed on:
Description:

I tried to compile an extension based on the sampleextension on Mac OSX.

With both, the ActiveTcl installation with tclConfig.sh in /Library/Frameworks/Tcl.framework/tclConfig.sh

and the MacPorts installation in /opt/local/lib/tclConfig.sh

there is a problem with -DUSE_TCL_STUBS. The flag is not set automatically in CPPFLAGS, when no extra arguments are given to ./configure. This is inconsistent, because the linker flag is -ltclstub8.6 - thus no linking is possible for extensions.

When I work around it by adding -DUSE_TCL_STUBS=1 to the CPPFLAGS in Makefile.in, it works.

I guess the expected behaviour would be that it is added automatically by autoconf / ./configure, as it is on Linux...