Re: [PD-dev] pdlibbuilder overrides

2018-02-05 Thread IOhannes m zmoelnig
On 2018-02-04 12:40, Dan Wilcox wrote:
> I was trying to make a quick test build of an external which uses 
> pdlibbuilder (abl_link~) and wanted to simply disable optimizations and 
> enable debug symbol generation.
> 
> I tried a simple CFLAG override but it didn't seem to work:
> 
> make CFLAGS="-O0 -g"

this seems to be related to the confusion of CFLAGS, CPPFLAGS and CXXFLAGS.
- CPPFLAGS flags for the C PreProcessor (and C++ and objective C/C++
preprocessors)
- CFLAGS flags for the C compiler
- CXXFLAGS flags for the C++ compiler

since abl_link~ is a C++-external, the CFLAGS don't have any effect and
you should use CXXFLAGS instead.

gmasdr
IOhannes



signature.asc
Description: OpenPGP digital signature
___
Pd-dev mailing list
Pd-dev@lists.iem.at
https://lists.puredata.info/listinfo/pd-dev


Re: [PD-dev] pdlibbuilder overrides

2018-02-04 Thread katja
On Sun, Feb 4, 2018 at 12:40 PM, Dan Wilcox  wrote:

> I was trying to make a quick test build of an external which uses
> pdlibbuilder (abl_link~) and wanted to simply disable optimizations and
> enable debug symbol generation.
>
> I tried a simple CFLAG override but it didn't seem to work:
>
> make CFLAGS="-O0 -g"
>
> How do override work with pdlibbuilder? Usually, I would expect this to at
> least append "-O0 -g" to the end of the computed CFLAGS.
>
> Can you specify "didn't seem to work"?

CFLAGS should override categories optimization.flags arch.c.flags. You can
inspect accumulated c.flags and cxx.flags by using "make vars CFLAGS="-O0
-g". For me on Xubuntu that gives:

c.flags = -DPD -I "/usr/include/pd" -DUNIX  -fPIC  -O0 -g
cxx.flags = -DPD -I "/usr/include/pd" -DUNIX  -fPIC -fcheck-new  -O0 -g


> Dan Wilcox
> @danomatika 
> danomatika.com
> robotcowboy.com
>
>
>
>
___
Pd-dev mailing list
Pd-dev@lists.iem.at
https://lists.puredata.info/listinfo/pd-dev