build/apache2.rb in passenger-3.9.2.beta vs build/apache2.rb in passenger-4.0.0.rc4
- old
+ new
@@ -1,7 +1,7 @@
# Phusion Passenger - https://www.phusionpassenger.com/
-# Copyright (c) 2010 Phusion
+# Copyright (c) 2010-2013 Phusion
#
# "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
@@ -57,18 +57,21 @@
ext/common/Utils/Timer.h)
}
APACHE2_MODULE_OBJECTS = APACHE2_MODULE_INPUT_FILES.keys
APACHE2_MOD_PASSENGER_O = APACHE2_OUTPUT_DIR + "mod_passenger.o"
-APACHE2_MODULE_CXXFLAGS = "-Iext -Iext/common #{PlatformInfo.apache2_module_cflags} " <<
+APACHE2_MODULE_CXXFLAGS =
+ "#{EXTRA_PRE_CXXFLAGS} " <<
+ "-Iext -Iext/common #{PlatformInfo.apache2_module_cflags} " <<
"#{PlatformInfo.portability_cflags} #{EXTRA_CXXFLAGS}"
APACHE2_MODULE_BOOST_OXT_LIBRARY = define_libboost_oxt_task("apache2",
APACHE2_OUTPUT_DIR + "module_libboost_oxt",
PlatformInfo.apache2_module_cflags)
APACHE2_MODULE_COMMON_LIBRARIES = COMMON_LIBRARY.
- only(:base, 'Utils/Base64.o', 'Utils/MD5.o').
+ only(:base, 'ApplicationPool2/AppTypes.o', 'Utils/Base64.o',
+ 'Utils/MD5.o', 'Utils/LargeFiles.o').
set_namespace("apache2").
set_output_dir(APACHE2_OUTPUT_DIR + "module_libpassenger_common").
define_tasks(PlatformInfo.apache2_module_cflags).
link_objects
@@ -78,12 +81,12 @@
APACHE2_MODULE,
AGENT_OUTPUT_DIR + 'PassengerHelperAgent',
AGENT_OUTPUT_DIR + 'PassengerWatchdog',
AGENT_OUTPUT_DIR + 'PassengerLoggingAgent',
AGENT_OUTPUT_DIR + 'SpawnPreparer',
- :native_support
-]
+ NATIVE_SUPPORT_TARGET
+].compact
# Define rules for the individual Apache 2 module source files.
APACHE2_MODULE_INPUT_FILES.each_pair do |target, sources|
file(target => sources) do
@@ -105,9 +108,10 @@
PlatformInfo.apache2ctl.nil? and raise "Could not find 'apachectl' or 'apache2ctl'."
PlatformInfo.httpd.nil? and raise "Could not find the Apache web server binary."
sources = (APACHE2_MODULE_OBJECTS + [APACHE2_MOD_PASSENGER_O]).join(' ')
linkflags =
+ "#{EXTRA_PRE_CXXFLAGS} #{EXTRA_PRE_LDFLAGS} " <<
"#{PlatformInfo.apache2_module_cflags} " <<
"#{PlatformInfo.portability_cflags} " <<
"#{EXTRA_CXXFLAGS} " <<
"#{APACHE2_MODULE_COMMON_LIBRARIES.join(' ')} " <<
"#{APACHE2_MODULE_BOOST_OXT_LIBRARY} " <<