Advertisement
Guest User

Untitled

a guest
Jan 14th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. RPM_SOURCE_DIR="/builddir/build/SOURCES"
  4. RPM_BUILD_DIR="/builddir/build/BUILD"
  5. RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic"
  6. RPM_ARCH="x86_64"
  7. RPM_OS="linux"
  8. export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
  9. RPM_DOC_DIR="/usr/share/doc"
  10. export RPM_DOC_DIR
  11. RPM_PACKAGE_NAME="ruby19"
  12. RPM_PACKAGE_VERSION="1.9.3p551"
  13. RPM_PACKAGE_RELEASE="1.el6"
  14. export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
  15. LANG=C
  16. export LANG
  17. unset CDPATH DISPLAY ||:
  18. RPM_BUILD_ROOT="/builddir/build/BUILDROOT/ruby19-1.9.3p551-1.el6.x86_64"
  19. export RPM_BUILD_ROOT
  20.  
  21. PKG_CONFIG_PATH="/usr/local/ruby1.9/lib64/pkgconfig:/usr/local/ruby1.9/share/pkgconfig"
  22. export PKG_CONFIG_PATH
  23.  
  24. set -x
  25. umask 022
  26. cd "/builddir/build/BUILD"
  27. cd 'ruby-1.9.3-p551'
  28. LANG=C
  29. export LANG
  30. unset DISPLAY
  31.  
  32. export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
  33.  
  34. # --disable-rpath \
  35.  
  36. CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic}" ; export CFLAGS ;
  37. CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic}" ; export CXXFLAGS ;
  38. FFLAGS="${FFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -I/usr/local/ruby1.9/lib64/gfortran/modules}" ; export FFLAGS ;
  39. ./configure --build=x86_64-koji-linux-gnu --host=x86_64-koji-linux-gnu \
  40. --target=x86_64-redhat-linux-gnu \
  41. --program-prefix= \
  42. --prefix=/usr/local/ruby1.9 \
  43. --exec-prefix=/usr/local/ruby1.9 \
  44. --bindir=/usr/local/ruby1.9/bin \
  45. --sbindir=/usr/local/ruby1.9/sbin \
  46. --sysconfdir=/etc \
  47. --datadir=/usr/local/ruby1.9/share \
  48. --includedir=/usr/local/ruby1.9/include \
  49. --libdir=/usr/local/ruby1.9/lib64 \
  50. --libexecdir=/usr/local/ruby1.9/libexec \
  51. --localstatedir=/var \
  52. --sharedstatedir=/var/lib \
  53. --mandir=/usr/local/ruby1.9/man \
  54. --infodir=/usr/share/info \
  55. --enable-shared \
  56. --includedir=/usr/local/ruby1.9/include/ruby \
  57. --with-sitedir='/usr/local/ruby1.9/lib/ruby/site_ruby' \
  58. --with-vendordir='/usr/local/ruby1.9/lib/ruby'
  59.  
  60. make -j16
  61.  
  62.  
  63. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement