summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in
index 0dae66b874..161eb7b4f4 100644
--- a/ext/extmk.rb.in
+++ b/ext/extmk.rb.in
@@ -223,7 +223,6 @@ def create_makefile(target)
end
$defs.push(format("-DEXTLIB='%s'", libs.join(",")))
end
- $libs = "" unless $libs
$srcdir = $topdir + "/ext/" + target
mfile = open("Makefile", "w")
@@ -352,9 +351,9 @@ def extmake(target)
return if $nodynamic and not $static
- $local_libs = nil
- $libs = nil
$objs = nil
+ $libs = "-lc"
+ $local_libs = nil # to be assigned in extconf.rb
$CFLAGS = nil
$LDFLAGS = nil