summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-31 03:10:07 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-05-31 03:10:07 +0000
commit0b0b2445fd9222483deb0b382b40d90f8c621837 (patch)
tree813d68b48b4967d5f0e0fadc8e9386cb49a5e85a /lib
parented2f7f70570fd7ec43633a20932256d32be6454f (diff)
2000-05-31
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb18
1 files changed, 1 insertions, 17 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index c2b1fef..14016f7 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -159,16 +159,8 @@ def have_library(lib, func="main")
#include <windows.h>
#include <winsock.h>
int main() { return 0; }
-int t() { #{func}(); return 0; }
-SRC
- unless r
- r = try_link(<<"SRC", libs)
-#include <windows.h>
-#include <winsock.h>
-int main() { return 0; }
int t() { void ((*p)()); p = (void ((*)()))#{func}; return 0; }
SRC
- end
else
r = try_link(<<"SRC", libs)
int main() { return 0; }
@@ -221,16 +213,8 @@ def have_func(func)
#include <windows.h>
#include <winsock.h>
int main() { return 0; }
-int t() { #{func}(); return 0; }
-SRC
- unless r
- r = try_link(<<"SRC", libs)
-#include <windows.h>
-#include <winsock.h>
-int main() { return 0; }
int t() { void ((*p)()); p = (void ((*)()))#{func}; return 0; }
SRC
- end
else
r = try_link(<<"SRC", libs)
int main() { return 0; }
@@ -405,7 +389,7 @@ EXEEXT = #{CONFIG["EXEEXT"]}
all: $(DLLIB)
clean:; @$(RM) *.#{$OBJEXT} *.so *.sl *.a $(DLLIB)
- @$(RM) $(TARGET).lib $(TARGET).exp
+ @$(RM) $(TARGET).lib $(TARGET).exp $(TARGET).ilk *.pdb
@$(RM) Makefile extconf.h conftest.*
@$(RM) core ruby$(EXEEXT) *~