--- build/config.rb.~1~ 2010-10-01 12:22:34.000000000 +0200 +++ build/config.rb 2010-11-02 10:56:25.309314070 +0100 @@ -17,12 +17,8 @@ OPTIMIZE = boolean_option("OPTIMIZE") CC = string_option("CC", "gcc") CXX = string_option("CXX", "g++") # TODO: consider -fcommon -if OPTIMIZE - OPTIMIZATION_FLAGS = "#{PlatformInfo.debugging_cflags} -O2 -DBOOST_DISABLE_ASSERTS".strip -else - OPTIMIZATION_FLAGS = "#{PlatformInfo.debugging_cflags} -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS".strip -end +OPTIMIZATION_FLAGS = "#{ENV['CXXFLAGS']} -DBOOST_DISABLE_ASSERTS".strip # Extra compiler flags that should always be passed to the C/C++ compiler. # Should be included last in the command string, even after PlatformInfo.portability_cflags. --- build/packaging.rb.~1~ 2010-10-10 20:52:03.000000000 +0200 +++ build/packaging.rb 2010-11-02 11:03:56.944938507 +0100 @@ -87,13 +87,13 @@ require 'rbconfig' require 'fileutils' include Config - fakeroot = "pkg/fakeroot" + fakeroot = ENV['DISTDIR'] # We don't use CONFIG['archdir'] and the like because we want # the files to be installed to /usr, and the Ruby interpreter # on the packaging machine might be in /usr/local. - fake_libdir = "#{fakeroot}/usr/lib/ruby/#{CONFIG['ruby_version']}" - fake_native_support_dir = "#{fakeroot}/usr/lib/ruby/#{CONFIG['ruby_version']}/#{CONFIG['arch']}" + fake_libdir = "#{fakeroot}/#{CONFIG['sitedir']}/#{CONFIG['ruby_version']}" + fake_native_support_dir = "#{fakeroot}/#{CONFIG['sitedir']}/#{CONFIG['ruby_version']}/#{CONFIG['arch']}" fake_agents_dir = "#{fakeroot}#{NATIVELY_PACKAGED_AGENTS_DIR}" fake_helper_scripts_dir = "#{fakeroot}#{NATIVELY_PACKAGED_HELPER_SCRIPTS_DIR}" fake_docdir = "#{fakeroot}#{NATIVELY_PACKAGED_DOCDIR}"