Skip to content

Commit

Permalink
Fix mini ports compilation issue
Browse files Browse the repository at this point in the history
Host might not be set when doing native compilation.
  • Loading branch information
luislavena authored and tenderlove committed Feb 25, 2014
1 parent 45d4cd9 commit 9256c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/vendor_sqlite3.rake
Expand Up @@ -17,7 +17,7 @@ def define_sqlite_task(platform, host)

unless File.exist?(checkpoint)
cflags = "-O2 -DSQLITE_ENABLE_COLUMN_METADATA"
cflags << " -fPIC" if recipe.host.include?("x86_64")
cflags << " -fPIC" if recipe.host && recipe.host.include?("x86_64")
recipe.configure_options << "CFLAGS='#{cflags}'"
recipe.cook
touch checkpoint
Expand Down

0 comments on commit 9256c71

Please sign in to comment.