Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ext/exiv2/extconf.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'mkmf'

CONFIG['CXX'] = ENV['CXX'] || 'clang++'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be solved on the user's system. I'd rather we did a check for CXX and fail loudly up front if it's not present.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what this will do to our ubuntu users (CMCG)

$CXXFLAGS += " -std=c++11"
RbConfig::CONFIG['PKG_CONFIG'] = 'pkg-config'

Expand All @@ -20,10 +21,10 @@
end

if have_macro("EXV_USE_CURL", "exiv2/exv_conf.h")
if dir_config("libcurl") == [nil, nil]
if dir_config("curl") == [nil, nil]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only renames the flag --with-libcurl-dir to --with-curl-dir, but shouldn't affect compilation. Unless we have some really weird side effect here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given I've resolved my issues and all fingers are pointing to ruby-build, I'm happy to clsoe this PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about #34 instead?

pkg_config("libcurl")
end
have_library("libcurl")
have_library("curl")
end

create_makefile("exiv2/exiv2")