Skip to content

Commit

Permalink
clang does not support -rpath-link
Browse files Browse the repository at this point in the history
  • Loading branch information
boussaffawalid committed Aug 10, 2023
1 parent 4f822a2 commit f7c2bf9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/qt/5.x.x/conanfile.py
Original file line number Diff line number Diff line change
@@ -124,6 +124,10 @@ class QtConan(ConanFile):
no_copy_source = True
short_paths = True

@property
def _is_clang(self):
return str(self.settings.compiler) in ["clang", "apple-clang"]

@property
def _settings_build(self):
return getattr(self, "settings_build", self.settings)
@@ -737,7 +741,7 @@ def build(self):

libdirs = [l for dependency in self.dependencies.host.values() for l in dependency.cpp_info.aggregated_components().libdirs]
args.append("QMAKE_LIBDIR+=\"%s\"" % " ".join(libdirs))
if not is_msvc(self):
if not is_msvc(self) and not self._is_clang():
args.append("QMAKE_RPATHLINKDIR+=\"%s\"" % ":".join(libdirs))

if "libmysqlclient" in [d.ref.name for d in self.dependencies.direct_host.values()]:

0 comments on commit f7c2bf9

Please sign in to comment.