Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Wed, 9 Nov 2011 17:16:32 +0400
From: Vasiliy Kulikov <>
Subject: missing $(CFLAGS) in several specs


I've changed optflags in .rpmmacros and checked whether packages
really use it.  The result:

build@...atros:~ $ grep gcc logs/* | grep -v -- -Wl,-z,now  | grep -v ':checking' | cut -d: -f1 | uniq | wc -l
grep: logs/installisotree: Permission denied
grep: logs/installvztree: Permission denied
grep: logs/installworld: Permission denied
build@...atros:~ $ ls logs/* | wc -l

2/3 packages don't always use our %optflags.

The most frequent case (example):

	$(CC) -o $(@) $(OBJS) $(LIBS) -L../../common/lib -L../lib -l$(TAGDIR) -lsimpleapps

logs/SimplePAMApps:gcc -o passwd passwd.o -lpam -lpam_misc -ldl -L../../common/lib -L../lib -lpamapps -lsimpleapps

No LDFLAGS or CFLAGS.  What's the right pattern for the linkage
invocation of gcc?  Does it need additional $(LDFLAGS) and $(CFLAGS) or
only $(LDFLAGS)?


Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ