Skip to content

Commit

Permalink
Merge branch 'solaris'
Browse files Browse the repository at this point in the history
* solaris:
  Add shared compile option for sun compiler
  • Loading branch information
raggi committed Mar 3, 2009
2 parents 3f25d47 + c528f33 commit 9d78167
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
11 changes: 6 additions & 5 deletions ext/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,16 @@ def add_define(name)

add_define 'OS_SOLARIS8'

# on Unix we need a g++ link, not gcc.
CONFIG['LDSHARED'] = "$(CXX) -shared"

# Patch by Tim Pease, fixes SUNWspro compile problems.
if CONFIG['CC'] == 'cc'
$CFLAGS = CONFIG['CFLAGS'] = "-g -O2 -fPIC"
# SUN CHAIN
$CFLAGS = CONFIG['CFLAGS'] = "-g -O2 -fPIC -G"
CONFIG['CCDLFLAGS'] = "-fPIC"
else
# GNU CHAIN
# on Unix we need a g++ link, not gcc.
CONFIG['LDSHARED'] = "$(CXX) -shared"
end

when /openbsd/
# OpenBSD branch contributed by Guillaume Sellier.

Expand Down
12 changes: 10 additions & 2 deletions ext/fastfilereader/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,16 @@ def add_define(name)

add_define 'OS_SOLARIS8'

# on Unix we need a g++ link, not gcc.
CONFIG['LDSHARED'] = "$(CXX) -shared"
# Patch by Tim Pease, fixes SUNWspro compile problems.
if CONFIG['CC'] == 'cc'
# SUN CHAIN
$CFLAGS = CONFIG['CFLAGS'] = "-g -O2 -fPIC -G"
CONFIG['CCDLFLAGS'] = "-fPIC"
else
# GNU CHAIN
# on Unix we need a g++ link, not gcc.
CONFIG['LDSHARED'] = "$(CXX) -shared"
end
when /openbsd/
# OpenBSD branch contributed by Guillaume Sellier.

Expand Down

0 comments on commit 9d78167

Please sign in to comment.