public
Description: Phusion Passenger (mod_rails)
Homepage: http://www.modrails.com/
Clone URL: git://github.com/FooBarWidget/passenger.git
Search Repo:
Click here to lend your support to: passenger and make a donation at www.pledgie.com !
Attempt to fix threading compilation issues on Debian Sarge.
Hongli Lai (Phusion) (author)
Thu Apr 03 04:11:31 -0700 2008
commit  67c896b56da45752c1715e3d7be2823d51462a06
tree    6d877a77ea0fcec69e21313c9e74e2336e2d0993
parent  4071540b7100aa4f89c3be2a9eb4a6f5e41fd7a7
...
16
17
18
19
 
 
20
21
22
...
66
67
68
69
 
70
71
72
...
16
17
18
 
19
20
21
22
23
...
67
68
69
 
70
71
72
73
0
@@ -16,7 +16,8 @@
0
 APR1_FLAGS.nil? and raise "Could not find Apache Portable Runtime (APR)."
0
 
0
 CXX = "g++"
0
-CXXFLAGS = "-Wall -g -I/usr/local/include " << MULTI_ARCH_FLAGS
0
+THREADING_FLAGS = "-D_REENTRANT"
0
+CXXFLAGS = "#{THREADING_FLAGS} -Wall -g -I/usr/local/include " << MULTI_ARCH_FLAGS
0
 LDFLAGS = ""
0
 
0
 
0
@@ -66,7 +67,7 @@
0
     # processes, sometimes pthread errors will occur. These errors are harmless
0
     # and should be ignored. Defining NDEBUG guarantees that boost::thread() will
0
     # not abort if such an error occured.
0
- flags = "-O2 -fPIC -I../.. -DNDEBUG #{MULTI_ARCH_FLAGS}"
0
+ flags = "-O2 -fPIC -I../.. #{THREADING_FLAGS} -DNDEBUG #{MULTI_ARCH_FLAGS}"
0
     compile_cxx "*.cpp", flags
0
     create_static_library "libboost_thread.a", "*.o"
0
   end

Comments

    No one has commented yet.