Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-11-13
11:18 • Ticket [2795092fff] override-able CFLAGS? status still Open with 2 other cha... artifact: 2fb1260026 user: serhiy.storchaka
2013-09-27
10:46 • Ticket [2795092fff]: 7 changes artifact: 63c871e92b user: dkf
2012-05-27
03:05 • Ticket [2795092fff]: 1 change artifact: 7654e9f79f user: dkf
2009-12-10
02:49 • Ticket [2795092fff]: 1 change artifact: 88009f66a9 user: dgp
2009-05-21
21:55 • New ticket [2795092fff]. artifact: 79b4cfad06 user: dgp

override-able CFLAGS?

Open2795092fffffffffffffffffffffffffffffffffCreated 18 years agoUpdated 19 days ago
Descriptionplain2009-05-21 21:55:23
Consider this:

http://lists.alioth.debian.org/pipermail/pkg-tcltk-devel/2009-May/001127.html
dgp Ticket [2795092fff]: 1 change [History diff]2009-12-10 02:49:27
dkf Ticket [2795092fff]: 1 change [History diff]2012-05-27 03:05:20
dkfhtml2013-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.

serhiy.storchaka Ticket [2795092fff]: 2 changes [History diff]2026-11-13 11:18:46
Log in (anonymous is fine) to add a comment.