summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2019-03-10 20:23:08 +0100
committerFrançois Andriot <[email protected]>2019-03-10 20:28:13 +0100
commitbfb7be2b9bf95dfcb7da69d42f7576c96e07b222 (patch)
treed1a8d9a6b16d10781d4462ab36dd67dfda973af7
parentd6f47b905ee995b58fcb8388f683971ce9a2c7ed (diff)
downloadtde-packaging-bfb7be2b9bf95dfcb7da69d42f7576c96e07b222.tar.gz
tde-packaging-bfb7be2b9bf95dfcb7da69d42f7576c96e07b222.zip
RPM: fix gcc visibility in TQT3
-rw-r--r--redhat/dependencies/tqt3/tqt3.spec7
1 files changed, 1 insertions, 6 deletions
diff --git a/redhat/dependencies/tqt3/tqt3.spec b/redhat/dependencies/tqt3/tqt3.spec
index 81966d8eb..4dae6cea7 100644
--- a/redhat/dependencies/tqt3/tqt3.spec
+++ b/redhat/dependencies/tqt3/tqt3.spec
@@ -309,11 +309,6 @@ BuildRequires: util-linux
%endif
%endif
-# GCC visibility stuff
-%if 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} || 0%{?rhel} >= 6
-%define EXTRA_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden
-%endif
-
%description
This is the Trolltech TQt library, version 3. It's necessary for
applications that link against the libtqt-mt.so.3, e.g. all Trinity
@@ -1287,7 +1282,7 @@ echo "sle_version = %{?sle_version}"
-e "s|^QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT = %{_includedir}/tqt3|" \
-e "s|\$(QTDIR)|/usr|g" \
-e "s|-lqt|-ltqt|g" \
- -e "s|^QMAKE_CFLAGS =.*|QMAKE_CFLAGS = %{?optflags}|" \
+ -e "s|^QMAKE_CFLAGS =.*|QMAKE_CFLAGS = %{?optflags} -pipe -fvisibility=hidden -fvisibility-inlines-hidden|" \
-e "s|^QMAKE_INCDIR =.*|QMAKE_INCDIR = %{_includedir}|" \
-e "s|^QMAKE_LIBDIR =.*|QMAKE_LIBDIR = %{_libdir}|" \
-e "s|^QMAKE_RPATH = .*|QMAKE_RPATH =|" \