Skip to content

Commit

Permalink
Merge pull request #36847 from badi/qtlocation
Browse files Browse the repository at this point in the history
qtlocation: fix darwin build
  • Loading branch information
LnL7 authored Mar 13, 2018
2 parents 1a1abb3 + 833851c commit ecbb902
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/development/libraries/qt-5/modules/qtlocation.nix
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
{ qtModule, qtbase, qtmultimedia }:
{ stdenv, qtModule, qtbase, qtmultimedia }:

qtModule {
name = "qtlocation";
qtInputs = [ qtbase qtmultimedia ];
outputs = [ "bin" "out" "dev" ];
# Linking with -lclipper fails with parallel build enabled
enableParallelBuilding = false;
qmakeFlags = stdenv.lib.optional stdenv.isDarwin [
# boost uses std::auto_ptr which has been disabled in clang with libcxx
# This flag re-enables this feature
# https://libcxx.llvm.org/docs/UsingLibcxx.html#c-17-specific-configuration-macros
"QMAKE_CXXFLAGS+=-D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR"
];

}

0 comments on commit ecbb902

Please sign in to comment.