Commit 531efdd03362a5ff2537a74c59fce66534c065ac

Authored by perry.werneck@gmail.com
1 parent cadabb2f

Marcus Meissner

The package needs to build with $RPM_OPT_FLAGS, my tries did
not succeed as just feeding in CFLAGS="$RPM_OPT_FLAGS" into configure
seems to result in visibility errors.
Showing 2 changed files with 5 additions and 2 deletions   Show diff stats
@@ -172,7 +172,7 @@ m4_define([GLIB_CHECK_COMPILE_WARNINGS], @@ -172,7 +172,7 @@ m4_define([GLIB_CHECK_COMPILE_WARNINGS],
172 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl 172 [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl
173 rm -f conftest.$ac_objext 173 rm -f conftest.$ac_objext
174 glib_ac_compile_save="$ac_compile" 174 glib_ac_compile_save="$ac_compile"
175 -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext' 175 +ac_compile='$CC -c conftest.$ac_ext'
176 AS_IF([_AC_EVAL_STDERR($ac_compile) && 176 AS_IF([_AC_EVAL_STDERR($ac_compile) &&
177 AC_TRY_COMMAND([(if test -s conftest.err; then false ; else true; fi)])], 177 AC_TRY_COMMAND([(if test -s conftest.err; then false ; else true; fi)])],
178 [$2], 178 [$2],
pw3270.spec.in
@@ -118,7 +118,10 @@ Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ @@ -118,7 +118,10 @@ Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@
118 find . -exec touch {} \; 118 find . -exec touch {} \;
119 aclocal 119 aclocal
120 autoconf 120 autoconf
121 -./configure --enable-pic --prefix=%{_prefix} --bindir=%{_bindir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} 121 +export CFLAGS="$RPM_OPT_FLAGS"
  122 +export CXXFLAGS="$RPM_OPT_FLAGS"
  123 +export FFLAGS="$RPM_OPT_FLAGS"
  124 +%configure
122 125
123 %build 126 %build
124 make clean 127 make clean