Skip to content

Commit

Permalink
fix makefile dependent on distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
yk0310 committed Sep 14, 2016
1 parent b365420 commit 8f1724f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions server/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ $(buildenvfile): $(deploybinfile)
ldd $(bin_PROGRAMS) | grep ' => .\+\.so' | cut -d ' ' -f 3 | xargs ls -ln --time-style="+%Y-%m-%d %H:%M:%S" >> $(buildenvfile)
echo '[ldd-libs-actual]' >> $(buildenvfile)
@for i in `ldd $(bin_PROGRAMS) | grep ' => .\+\.so' | cut -d ' ' -f 3` ; do readlink -f $$i ; done | xargs ls -ln --time-style="+%Y-%m-%d %H:%M:%S" >> $(buildenvfile)
echo '[rpm]' >> $(buildenvfile)
rpm -qa | grep 'glibc\|gcc\|make\|libtool\|openssl' | sort >> $(buildenvfile)
echo '[redhat-release]' >> $(buildenvfile)
cat /etc/redhat-release >> $(buildenvfile)
echo '[bin-depends]' >> $(buildenvfile)
( LANG=C readelf -d $(bin_PROGRAMS) ) | grep 'NEEDED\|SONAME' >> $(buildenvfile) || :
echo '[bin-version-needs]' >> $(buildenvfile)
( LANG=C readelf -V $(bin_PROGRAMS) ) | grep 'Version:' >> $(buildenvfile) || :
echo '[cc-version]' >> $(buildenvfile)
@CC@ --version >> $(buildenvfile)
echo '[cxx-version]' >> $(buildenvfile)
@CXX@ --version >> $(buildenvfile)

clean-local:
rm -fv $(buildenvfile)
Expand Down

0 comments on commit 8f1724f

Please sign in to comment.