On 17/06/2017 18:35, Bruce Dubbs wrote:
> Pierre Labastie wrote:
>> On 17/06/2017 17:50, Bruce Dubbs wrote:
>>> Pierre Labastie wrote:
>>>> -----
>>>>         case $packagedir in
>>>>           kdelibs4support*)
>>>>             export CXXFLAGS='-isystem /usr/include/openssl-1.0'
>>>>           ;;
>>>>         esac
>>>> -----
>>>>
>>>
>>> That would be helpful, but we also probably ought to unset CXXFLAGS when it 
>>> is
>>> no longer needed for those who do not run the commands in a script.
>>>
>>
>> Right, will do something like (after make install):
>>        case $packagedir in
>>          kdelibs4support*)
>>             unset CXXFLAGS
>>           ;;
>>        esac
> 
> For this case, it might be easier to us a simple if:
> 
> if [ "$packagedir" == "kdelibs4support-5.34.0.tar.xz" ]; then
>   export CXXFLAGS='-isystem /usr/include/openssl-1.0'
> fi
> 
> ...
> 
> [ "$packagedir" == "kdelibs4support-5.34.0.tar.xz" ] && unset CXXFLAGS
> 
Well, my idea is that some other packages may need a fix at times. That's why
I used the "case" construct...

But I do not have strong feelings against your version, of course...

Pierre

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to