Accepting request 513181 from home:msmeissn:branches:hardware

- forcefully enable PIE as automatism does not trigger.

OBS-URL: https://build.opensuse.org/request/show/513181
OBS-URL: https://build.opensuse.org/package/show/hardware/gammu?expand=0&rev=39
This commit is contained in:
2017-08-26 16:25:45 +00:00
committed by Git OBS Bridge
parent 6e37d9b9fb
commit c42806e269
2 changed files with 8 additions and 2 deletions

View File

@@ -277,8 +277,9 @@ rm -rf helper/win32-*
%build
mkdir build
cd build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
export CFLAGS="%{optflags} -fPIE"
export CXXFLAGS="%{optflags} -fPIE"
export LDFLAGS="-pie"
cmake ../ \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \