Commit 531efdd03362a5ff2537a74c59fce66534c065ac
1 parent
cadabb2f
Exists in
master
and in
5 other branches
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
configure.ac
| ... | ... | @@ -172,7 +172,7 @@ m4_define([GLIB_CHECK_COMPILE_WARNINGS], |
| 172 | 172 | [m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl |
| 173 | 173 | rm -f conftest.$ac_objext |
| 174 | 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 | 176 | AS_IF([_AC_EVAL_STDERR($ac_compile) && |
| 177 | 177 | AC_TRY_COMMAND([(if test -s conftest.err; then false ; else true; fi)])], |
| 178 | 178 | [$2], | ... | ... |
pw3270.spec.in
| ... | ... | @@ -118,7 +118,10 @@ Revision @PACKAGE_REVISION@ from @PACKAGE_SOURCE@ |
| 118 | 118 | find . -exec touch {} \; |
| 119 | 119 | aclocal |
| 120 | 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 | 126 | %build |
| 124 | 127 | make clean | ... | ... |