← Back to team overview

kicad-developers team mailing list archive

Re: [PATCH 2/4] Use CMake function for position independent code

 

Hi,

> - set( BOOST_CFLAGS "cflags=${PIC_FLAG}" )
> - set( BOOST_CXXFLAGS "cxxflags=${PIC_FLAG}" )

> because cmake will only set -fpic in CFLAGS but the entire cmake file
> uses BOOST_CFLAGS and never passes the plain CFLAGS

The Boost build knows on its own that it needs -fPIC -- except if you
link statically, which has its own issues.

   Simon

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups

References