summaryrefslogtreecommitdiff
path: root/graphics/rubygem-opengl/files/patch-ext-opengl-extconf.rb
blob: 474ec286998dd2515129094c4eb67f213080368f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- ext/opengl/extconf.rb.orig	2017-06-25 14:46:52 UTC
+++ ext/opengl/extconf.rb
@@ -2,9 +2,6 @@ require 'mkmf'
 
 have_header('dlfcn.h') || have_header('windows.h')
 
-ok = have_library('dl', 'dlopen', ['dlfcn.h']) ||
-  have_library('user32', 'GetProcAddress', ['windows.h'])
-
 have_header 'stdint.h'
 have_header 'inttypes.h'
 
@@ -13,7 +10,5 @@ have_struct_member 'struct RFloat', 'flo
 have_type 'int64_t', 'stdint.h'
 have_type 'uint64_t', 'stdint.h'
 
-if ok then
   create_header
   create_makefile 'opengl/opengl'
-end