build: don't pass -fPIC on Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Vincent Torri 2017-08-14 07:07:05 +02:00 committed by Cedric BAIL
parent c2abb9a946
commit d0469d52ed
1 changed files with 4 additions and 2 deletions

View File

@ -285,8 +285,10 @@ m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_INIT([win32-dll disable-static pic-only])
EFL_INIT
CXXFLAGS="${CXXFLAGS} -fPIC -DPIC"
LDFLAGS="${LDFLAGS} -fPIC -DPIC"
if ! test "x${have_win32}" = "xyes" ; then
CXXFLAGS="${CXXFLAGS} -fPIC -DPIC"
LDFLAGS="${LDFLAGS} -fPIC -DPIC"
fi
### gettext