../configure --with-gtk \
--prefix=%{wxpref} \
--enable-monolithic \
- --enable-rpath=%{wxpref}/lib \
+ --disable-rpath \
--with-opengl \
--enable-geometry \
--enable-optimise \
%if %{debug_flag}
--enable-debug_flag \
%endif
+ --disable-debugreport \
%if %{builtin_libs}
--with-libjpeg=builtin \
--with-libpng=builtin \
UNICODE=%{unicode} \
EP_ADD_OPTS=1 \
NO_SCRIPTS=1 \
- WX_CONFIG="$WXDIR/bld/wx-config --inplace" \
- build
+ WX_CONFIG="$WXDIR/bld/wx-config --no_rpath" \
+ build_ext --rpath=%{wxpref}/lib \
+ build
UNICODE=%{unicode} \
EP_ADD_OPTS=1 \
NO_SCRIPTS=1 \
- WX_CONFIG="$RPM_BUILD_ROOT%{wxpref}/bin/wx-config --prefix=$RPM_BUILD_ROOT%{wxpref}" \
+ WX_CONFIG="$RPM_BUILD_ROOT%{wxpref}/bin/wx-config --prefix=$RPM_BUILD_ROOT%{wxpref} --no_rpath" \
+ build_ext --rpath=%{wxpref}/lib \
install \
--root=$RPM_BUILD_ROOT