[Prelude Hybrid IDS] #264: Makefile for bindings does not use CC correctly

"Prelude Hybrid IDS" <[email protected]>
Newsgroups gmane.comp.security.ids.prelude.devel
Message-ID <[email protected]>
#264: Makefile for bindings does not use CC correctly
------------------------+---------------------------------------------------
 Reporter:  pollux      |       Owner:  yoann
     Type:  defect      |      Status:  new  
 Priority:  normal      |   Milestone:       
Component:  libprelude  |     Version:  0.9  
 Severity:  normal      |    Keywords:       
------------------------+---------------------------------------------------
 When using a different compiler (ccache, for ex), bindings are not built
 using the contents of the CC variable because it is not exported.

 For ex:
 {{{
 ./configure CC=/usr/lib/ccache/gcc
 make
 [...]
 cp Prelude.pm blib/lib/Prelude.pm
 gcc -std=gnu99 -c  -I../.. -I../../src/include -I../../src/include
 -I../../src/libprelude-error -pthread -D_REENTRANT -D_GNU_SOURCE
 -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe
 -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
 -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib/perl/5.8/CORE"
 Prelude.c
 }}}

 Patch is attached, to export the CC variable to sub-makefiles.

 It also solves a problem where the clean-am target is used, instead of
 clean-local.

-- 
Ticket URL: <https://trac.prelude-ids.org/ticket/264>
Prelude Hybrid IDS <http://www.prelude-ids.org>
The Prelude Hybrid Intrusion Detection System suite
_______________________________________________
Prelude-devel site list
[email protected]
http://www.prelude-ids.org/mailman/listinfo/prelude-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.