Browse Source

RPM: fix gcc visibility in TQT3

François Andriot 1 month ago
parent
commit
bfb7be2b9b
1 changed files with 1 additions and 6 deletions
  1. 1
    6
      redhat/dependencies/tqt3/tqt3.spec

+ 1
- 6
redhat/dependencies/tqt3/tqt3.spec View File

@@ -309,11 +309,6 @@ BuildRequires: util-linux
309 309
 %endif
310 310
 %endif
311 311
 
312
-# GCC visibility stuff
313
-%if 0%{?fedora} || 0%{?mgaversion} || 0%{?mdkversion} || 0%{?suse_version} || 0%{?rhel} >= 6
314
-%define EXTRA_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden
315
-%endif
316
-
317 312
 %description
318 313
 This is the Trolltech TQt library, version 3. It's necessary for
319 314
 applications that link against the libtqt-mt.so.3, e.g. all Trinity
@@ -1287,7 +1282,7 @@ echo "sle_version = %{?sle_version}"
1287 1282
   -e "s|^QMAKE_INCDIR_QT.*|QMAKE_INCDIR_QT		= %{_includedir}/tqt3|" \
1288 1283
   -e "s|\$(QTDIR)|/usr|g" \
1289 1284
   -e "s|-lqt|-ltqt|g" \
1290
-  -e "s|^QMAKE_CFLAGS		=.*|QMAKE_CFLAGS		= %{?optflags}|" \
1285
+  -e "s|^QMAKE_CFLAGS		=.*|QMAKE_CFLAGS		= %{?optflags} -pipe -fvisibility=hidden -fvisibility-inlines-hidden|" \
1291 1286
   -e "s|^QMAKE_INCDIR		=.*|QMAKE_INCDIR		= %{_includedir}|" \
1292 1287
   -e "s|^QMAKE_LIBDIR		=.*|QMAKE_LIBDIR		= %{_libdir}|" \
1293 1288
   -e "s|^QMAKE_RPATH		= .*|QMAKE_RPATH		=|" \

Loading…
Cancel
Save