Tcl Source Code

View Ticket
Login
Ticket UUID: 2795092
Title: override-able CFLAGS?
Type: Bug Created on: 2009-05-21 21:55:23
Submitter: dgp Assigned to: dgp
Subsystem: 81. Bundled Packages Severity: Minor
Priority: 9 Immediate Last modified: 2026-11-13 11:18:46
Status: Open Closed by: nobody
Resolution: Remind Closed on:
Version: None
Description:
Consider this:

http://lists.alioth.debian.org/pipermail/pkg-tcltk-devel/2009-May/001127.html
User Comments:
dkf added on 2013-09-27 10:46:54:

Essential part of content on that page:

The issue is that debian/rules calls
    $(MAKE) CFLAGS="$(CFLAGS)"
overriding the CFLAGS variable set in pkgs/tdbc1.0b1/Makefile.in, which 
had been set up to include ${SHLIB_CFLAGS} (-fPIC) by 
pkgs/tdbc1.0b1/configure (generated from the TEA_MAKE_LIB macro in 
pkgs/tdbc1.0b1/tclconfig/tcl.m4).

This is arguably an upstream bug, because CFLAGS is supposed to be 
overridable in this way, and should contain only optional optimization 
flags, not essential flags like -fPIC.

However, passing the Debian CFLAGS to configure instead of forcefully 
overriding them in make is cleaner, and allows the package to build:
[...]

My reading is that they've got a workaround, but we're doing something wrong.