forked from pool/freerdp
Accepting request 1090021 from home:Andreas_Schwab:Factory
- Don't compile shared objects with -fPIE and use -pie only for executables - Reenable LTO on ARM OBS-URL: https://build.opensuse.org/request/show/1090021 OBS-URL: https://build.opensuse.org/package/show/X11:RemoteDesktop/freerdp?expand=0&rev=147
This commit is contained in:
parent
7365a41808
commit
e23b0fa86c
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 31 13:15:32 UTC 2023 - Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
- Don't compile shared objects with -fPIE and use -pie only for executables
|
||||||
|
- Reenable LTO on ARM
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Apr 24 17:53:55 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
Mon Apr 24 17:53:55 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||||
|
|
||||||
|
@ -34,9 +34,6 @@
|
|||||||
%define libfreerdp_package %{major_version}-%{major_version}
|
%define libfreerdp_package %{major_version}-%{major_version}
|
||||||
%define uwac_version 0
|
%define uwac_version 0
|
||||||
%define uwac_package %{uwac_version}-%{uwac_version}
|
%define uwac_package %{uwac_version}-%{uwac_version}
|
||||||
%ifarch aarch64 %{arm}
|
|
||||||
%define _lto_cflags %{nil}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: freerdp
|
Name: freerdp
|
||||||
Version: 2.10.0
|
Version: 2.10.0
|
||||||
@ -203,14 +200,13 @@ use the uwac library.
|
|||||||
if [ -z "$SOURCE_DATE_EPOCH" ]; then
|
if [ -z "$SOURCE_DATE_EPOCH" ]; then
|
||||||
find . -type f -name "*.c" -exec perl -i -pe 's{__(DATE|TIME)__}{""}g' "{}" "+"
|
find . -type f -name "*.c" -exec perl -i -pe 's{__(DATE|TIME)__}{""}g' "{}" "+"
|
||||||
fi
|
fi
|
||||||
export LDFLAGS="-pie"
|
|
||||||
export CFLAGS="%{optflags} -fPIE -pie"
|
|
||||||
|
|
||||||
%cmake \
|
%cmake \
|
||||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||||
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
|
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DWITH_ALSA=ON \
|
-DCMAKE_EXE_LINKER_FLAGS="-pie" \
|
||||||
|
-DWITH_ALSA=ON \
|
||||||
-DWITH_CAIRO=ON \
|
-DWITH_CAIRO=ON \
|
||||||
-DWITH_CUPS=ON \
|
-DWITH_CUPS=ON \
|
||||||
-DWITH_CHANNELS=ON -DBUILTIN_CHANNELS=OFF \
|
-DWITH_CHANNELS=ON -DBUILTIN_CHANNELS=OFF \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user