Skip to content

Commit

Permalink
* ext/extmk.rb (--no-undefined): annoying option removed.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
eban committed Aug 2, 2003
1 parent 63f5a71 commit 1038c25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Sat Aug 2 15:11:54 2003 WATANABE Hirofumi <[email protected]>

* ext/extmk.rb (--no-undefined): annoying option removed.

Sat Aug 2 14:53:55 2003 Nobuyoshi Nakada <[email protected]>

* lib/mkmf.rb (pkg_config): get configuration by pkg-config. [new]
Expand Down
11 changes: 0 additions & 11 deletions ext/extmk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
$extobjs = nil
$ignore = nil
$message = nil
$use_no_undef = nil

$progname = $0
alias $PROGRAM_NAME $0
Expand All @@ -34,12 +33,6 @@
$top_srcdir = srcdir
$hdrdir = $top_srcdir

if not $use_no_undef and /linux/ =~ RUBY_PLATFORM and
$configure_args['--enable-shared'] and
CONFIG["GNU_LD"] == "yes"
$use_no_undef = 0 <= (`ld -v`.scan(/\d+/).map{|x| x.to_i} <=> [2, 11])
end

def sysquote(x)
@quote ||= /human|os2|macos/ =~ (CROSS_COMPILING || RUBY_PLATFORM)
@quote ? x.quote : x
Expand All @@ -60,10 +53,6 @@ def extmake(target)

init_mkmf

if $use_no_undef
$DLDFLAGS << " -Wl,--no-undefined"
end

begin
dir = Dir.pwd
File.mkpath target unless File.directory?(target)
Expand Down

0 comments on commit 1038c25

Please sign in to comment.