diff --git a/gambas3.spec b/gambas3.spec index e0ae821..562219e 100644 --- a/gambas3.spec +++ b/gambas3.spec @@ -877,6 +877,8 @@ chmod -x main/lib/option/main.c %build # Gambas can't deal with -Wp,-D_FORTIFY_SOURCE=2 MY_CFLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g'` +# force our flags to be used during configure +CC="gcc $MY_CFLAGS" %configure \ --datadir="%{_datadir}" \ --enable-intl \ @@ -928,10 +930,6 @@ for i in main; do sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' $i/libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' $i/libtool done -#DEBUG -pushd gb.httpd -cat config.log -popd %{__make} LIBTOOL=%{_bindir}/libtool %{?_smp_mflags} %install