Changeset 391

Show
Ignore:
Timestamp:
06/16/07 07:34:12 (2 years ago)
Author:
blackhedd
Message:

the linux makefile now strips the generated shared object.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • version_0/ext/extconf.rb

    r390 r391  
    142142  # on Unix we need a g++ link, not gcc. 
    143143  CONFIG['LDSHARED'] = "$(CXX) -shared" 
     144 
     145  # Modify the mkmf constant LINK_SO so the generated shared object is stripped. 
     146  # You might think modifying CONFIG['LINK_SO'] would be a better way to do this, 
     147  # but it doesn't work because mkmf doesn't look at CONFIG['LINK_SO'] again after 
     148  # it initializes. 
     149  linkso = Object.send :remove_const, "LINK_SO" 
     150  LINK_SO = linkso + "; strip $@" 
    144151end 
    145152