Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- RPM_SOURCE_DIR="/builddir/build/SOURCES"
- RPM_BUILD_DIR="/builddir/build/BUILD"
- RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic"
- RPM_ARCH="x86_64"
- RPM_OS="linux"
- export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
- RPM_DOC_DIR="/usr/share/doc"
- export RPM_DOC_DIR
- RPM_PACKAGE_NAME="ruby19"
- RPM_PACKAGE_VERSION="1.9.3p551"
- RPM_PACKAGE_RELEASE="1.el6"
- export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
- LANG=C
- export LANG
- unset CDPATH DISPLAY ||:
- RPM_BUILD_ROOT="/builddir/build/BUILDROOT/ruby19-1.9.3p551-1.el6.x86_64"
- export RPM_BUILD_ROOT
- PKG_CONFIG_PATH="/usr/local/ruby1.9/lib64/pkgconfig:/usr/local/ruby1.9/share/pkgconfig"
- export PKG_CONFIG_PATH
- set -x
- umask 022
- cd "/builddir/build/BUILD"
- cd 'ruby-1.9.3-p551'
- LANG=C
- export LANG
- unset DISPLAY
- export CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing"
- # --disable-rpath \
- CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic}" ; export CFLAGS ;
- CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic}" ; export CXXFLAGS ;
- 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 ;
- ./configure --build=x86_64-koji-linux-gnu --host=x86_64-koji-linux-gnu \
- --target=x86_64-redhat-linux-gnu \
- --program-prefix= \
- --prefix=/usr/local/ruby1.9 \
- --exec-prefix=/usr/local/ruby1.9 \
- --bindir=/usr/local/ruby1.9/bin \
- --sbindir=/usr/local/ruby1.9/sbin \
- --sysconfdir=/etc \
- --datadir=/usr/local/ruby1.9/share \
- --includedir=/usr/local/ruby1.9/include \
- --libdir=/usr/local/ruby1.9/lib64 \
- --libexecdir=/usr/local/ruby1.9/libexec \
- --localstatedir=/var \
- --sharedstatedir=/var/lib \
- --mandir=/usr/local/ruby1.9/man \
- --infodir=/usr/share/info \
- --enable-shared \
- --includedir=/usr/local/ruby1.9/include/ruby \
- --with-sitedir='/usr/local/ruby1.9/lib/ruby/site_ruby' \
- --with-vendordir='/usr/local/ruby1.9/lib/ruby'
- make -j16
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement