[112994] trunk/dports/science/gnuradio/Portfile
Ryan Schmidt
ryandesign at macports.org
Wed Nov 6 20:04:33 PST 2013
On Nov 6, 2013, at 19:07, Michael Dickens wrote:
> On Nov 6, 2013, at 7:45 PM, Ryan Schmidt wrote:
>> On Nov 6, 2013, at 08:32, michaelld at macports.org wrote:
>>> +configure.cppflags-delete -I${prefix}/include
>>> +configure.cflags-delete -I${prefix}/include
>>> +configure.cxxflags-delete -I${prefix}/include
>>
>> Note that cflags and cxxflags do not contain that value to begin with, so those two porfiles lines do nothing.
>
> I am running on OSX 10.8, using Xcode 5.0.1 (latest).
>
> Without those changes:
> {{{
> DEBUG: Environment: CPATH='/opt/local/include'
> CPPFLAGS='-I/opt/local/include' CFLAGS='-pipe -Os -I/opt/local/include
> -arch x86_64' CXXFLAGS='-pipe -Os -I/opt/local/include -arch x86_64
> -stdlib=libstdc++' LIBRARY_PATH='/opt/local/lib'
> MACOSX_DEPLOYMENT_TARGET='10.8' F77FLAGS='-m64' CXX='/usr/bin/clang++'
> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/b
> uild/_opt_MacPorts_trunk_dports_science_gr-osmosdr/gr-osmosdr/work/.CC_
> PRINT_OPTIONS' F90FLAGS='-pipe -Os -m64' LDFLAGS='-L/opt/local/lib
> -Wl,-headerpad_max_install_names -arch x86_64'
> __CFPREFERENCES_AVOID_DAEMON='1' FCFLAGS='-pipe -Os -m64'
> OBJC='/usr/bin/clang' OBJCXX='/usr/bin/clang++'
> INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -Os -arch x86_64'
> OBJCXXFLAGS='-pipe -Os -arch x86_64 -stdlib=libstdc++' FFLAGS='-pipe
> -Os' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
> }}}
>
> With those changes:
> {{{
> DEBUG: Environment: CPATH='/opt/local/include' CFLAGS='-pipe -Os -arch
> x86_64' CXXFLAGS='-pipe -Os -arch x86_64 -stdlib=libstdc++'
> LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.8'
> F77FLAGS='-m64' CXX='/usr/bin/clang++'
> CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_MacPorts_trunk_dports_science_gr-osmosdr/gr-osmosdr/work/.CC_PRINT_OPTIONS'
> F90FLAGS='-pipe -Os -m64' LDFLAGS='-Wl,-headerpad_max_install_names
> -arch x86_64' __CFPREFERENCES_AVOID_DAEMON='1' FCFLAGS='-pipe -Os -m64'
> OBJC='/usr/bin/clang' OBJCXX='/usr/bin/clang++'
> INSTALL='/usr/bin/install -c' OBJCFLAGS='-pipe -Os -arch x86_64'
> OBJCXXFLAGS='-pipe -Os -arch x86_64 -stdlib=libstdc++' FFLAGS='-pipe
> -Os' CC_PRINT_OPTIONS='YES' CC='/usr/bin/clang'
> }}}
>
> So, yes, at least on my setup I do need them. I have done nothing
> special in my setup. Maybe they are not needed in 10.9?
>
> I don't remember these items being part of the usual build, but when I
> was checking today I saw them. Maybe they were added with the recent
> CMake changes? - MLD
Make sure your cmake portgroup is up to date; there were some recent problematic changes that were fixed a couple days later. With the current revision, it adds the value of cppflags to cflags and cxxflags at pre-configure time if it is not empty. So you can change or clear cppflags prior to pre-configure time if you wish, but there’s no need to remove values from cflags and cxxflags that they don’t contain to begin with.
More information about the macports-dev
mailing list