ext/robotstxt/extconf.rb in google_robotstxt_parser-0.0.3 vs ext/robotstxt/extconf.rb in google_robotstxt_parser-0.0.4

- old
+ new

@@ -66,14 +66,11 @@ run_cmake(5 * 60, '..') sys(MAKE) end end -robotslib = "/usr/local/lib/librobots" - -# TODO : remove this to link the lib directly from the c-build directory -FileUtils.ln_s "#{LIBROBOTSTXT_DIR}/c-build/librobots.dylib", "#{robotslib}.dylib", force: true -FileUtils.ln_s "#{LIBROBOTSTXT_DIR}/c-build/librobots.a", "#{robotslib}.a", force: true +# Link the dylib directly from the c-build directory +$LDFLAGS << " -Wl,-rpath,#{LIBROBOTSTXT_DIR}/c-build" dir_config('robotstxt', HEADER_DIRS, LIB_DIRS) unless have_library('robots') abort 'ERROR: Failed to build robots'