Fix flags for annobin in Qt tools build
Generate Makefiles of Qt tools (bat, tray-monitor) before the build in order to pick up the right compiler/linker flags. Regenerate the Makefiles again after the build to have the correct install targets. Not sure why the regeneration before build results in incorrect install target in Makefiles, but this workaround is confirmed to work. Remove the second %make_build in tray-monitor, the tool has been built already, so this has no effect. Resolves: rhbz#2044645
This commit is contained in:
parent
0a620f09bb
commit
d6c0056e64
15
bacula.spec
15
bacula.spec
@ -349,15 +349,24 @@ export PATH="$PATH:%{_qt5_bindir}"
|
|||||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
|
||||||
|
pushd src/qt-console/
|
||||||
|
%{?qmake_qt5}%{!?qmake_qt5:qmake-qt5} bat.pro
|
||||||
|
pushd tray-monitor
|
||||||
|
%{?qmake_qt5}%{!?qmake_qt5:qmake-qt5} tray-monitor.pro
|
||||||
|
popd
|
||||||
|
popd
|
||||||
|
|
||||||
%make_build
|
%make_build
|
||||||
%make_build -C src/tools/cdp-client
|
%make_build -C src/tools/cdp-client
|
||||||
%if %{with nagios}
|
%if %{with nagios}
|
||||||
%make_build -C examples/nagios/check_bacula
|
%make_build -C examples/nagios/check_bacula
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
pushd src/qt-console/tray-monitor
|
pushd src/qt-console/
|
||||||
%{?qmake_qt5}%{!?qmake_qt5:qmake-qt5} tray-monitor.pro
|
%{?qmake_qt5}%{!?qmake_qt5:qmake-qt5} bat.pro
|
||||||
%make_build
|
pushd tray-monitor
|
||||||
|
%{?qmake_qt5}%{!?qmake_qt5:qmake-qt5} tray-monitor.pro
|
||||||
|
popd
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Convert image to png for tray monitor icon
|
# Convert image to png for tray monitor icon
|
||||||
|
Loading…
Reference in New Issue
Block a user