diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am index 55a01e421c..aa679e556e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -25,15 +25,14 @@ dist-rpm: mkdir $$RPM_BUILD_DIR/$$subdir; \ done; \ mkdir $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION); \ - cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/; \ - pushd $$RPM_BUILD_DIR/SOURCES/; \ - tar zcf tor-$(VERSION).tar.gz ./; \ - popd; \ - rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \ - mv $$RPM_BUILD_DIR/SRPMS/* .; \ - mv $$RPM_BUILD_DIR/RPMS/* .; \ - rm -rf $$RPM_BUILD_DIR - + cp -R ./ $$RPM_BUILD_DIR/SOURCES/tor-$(VERSION)/; \ + pushd $$RPM_BUILD_DIR/SOURCES/; \ + tar zcf tor-$(VERSION).tar.gz ./; \ + popd; \ + LIBS=-lrt rpmbuild -ba --define "_topdir $$RPM_BUILD_DIR" tor.spec; \ + mv $$RPM_BUILD_DIR/SRPMS/* .; \ + mv $$RPM_BUILD_DIR/RPMS/* .; \ + rm -rf $$RPM_BUILD_DIR dist-osx: @if [ "x$(prefix)" != 'x/Library/Tor' ]; then \ |