Skip to content

Commit ab867a8

Browse files
committed
Fix library not linking
1 parent 4035081 commit ab867a8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/or-tools/extconf.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
libprotobuf_dir = lib_dirs.find { |dir| File.exist?("#{dir}/libprotobuf.a") }
1818
raise "libprotobuf.a not found" unless libprotobuf_dir
1919

20-
raise "OR-Tools not found" unless have_library("ortools")
21-
2220
# -L flags for each lib directory
2321
lib_dirs_flags = lib_dirs.map { |lib_dir| "-L#{lib_dir} " }.join
2422

@@ -41,5 +39,5 @@
4139
$LDFLAGS.prepend("-Wl,-rpath,#{rpath} -L#{lib} #{lib}/libprotobuf.a ")
4240
end
4341

44-
42+
raise "OR-Tools not found" unless have_library("ortools")
4543
create_makefile("or_tools/ext")

0 commit comments

Comments
 (0)