-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build fails on SmartOS #34
Comments
@bixu I was able to get this to compile by lying to the dave - sjc1-dave-01 sunos ~/dev/dep-selector-libgecode (git:master) $ git diff
diff --git a/ext/libgecode3/vendor/gecode-3.7.3/configure b/ext/libgecode3/vendor/gecode-3.7.3/configure
index 05f0595..6eed352 100755
--- a/ext/libgecode3/vendor/gecode-3.7.3/configure
+++ b/ext/libgecode3/vendor/gecode-3.7.3/configure
@@ -2692,7 +2692,7 @@ $as_echo_n "checking for the host operating system... " >&6; }
guess_host_os=${with_host_os}
fi
case ${guess_host_os} in
- GNU/kFreeBSD|*inux*|FreeBSD|NetBSD)
+ GNU/kFreeBSD|*inux*|FreeBSD|NetBSD|SunOS)
host_os=linux
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Linux" >&5
$as_echo "Linux" >&6; } |
fyi this may be the more approved method of passing this information diff --git a/ext/libgecode3/extconf.rb b/ext/libgecode3/extconf.rb
index 37bcd45..9107c4b 100644
--- a/ext/libgecode3/extconf.rb
+++ b/ext/libgecode3/extconf.rb
@@ -13,6 +13,10 @@ module GecodeBuild
!!(RUBY_PLATFORM =~ /mswin|mingw|windows/)
end
+ def self.sunos?
+ `uname`.strip == 'SunOS'
+ end
+
def self.gecode_vendor_dir
GECODE_VENDOR_DIR
end
@@ -40,6 +44,7 @@ module GecodeBuild
--disable-flatzinc
]
args << "--with-host-os=windows" if windows?
+ args << "--with-host-os=Linux" if sunos?
args
end
|
bahamas10
added a commit
to bahamas10/dep-selector-libgecode
that referenced
this issue
Feb 10, 2015
hjhart
pushed a commit
to wanelo-chef/dep-selector-libgecode
that referenced
this issue
Jan 11, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: