Use relative path to configure.
So we don't need to set srcdir in xapian
This commit is contained in:
parent
c2e5fe06d0
commit
d30dc90335
|
@ -421,9 +421,11 @@ class MakeBuilder(Builder):
|
||||||
|
|
||||||
def _configure(self, context):
|
def _configure(self, context):
|
||||||
context.try_skip(self.build_path)
|
context.try_skip(self.build_path)
|
||||||
|
configure_path = self.source_path / self.configure_script
|
||||||
|
configure_path = configure_path.relative_to(self.build_path, walk_up=True)
|
||||||
command = [
|
command = [
|
||||||
*self.buildEnv.configure_wrapper,
|
*self.buildEnv.configure_wrapper,
|
||||||
self.source_path / self.configure_script,
|
configure_path,
|
||||||
*self.all_configure_options,
|
*self.all_configure_options,
|
||||||
]
|
]
|
||||||
env = self.get_env(cross_comp_flags=True, cross_compilers=True, cross_path=True)
|
env = self.get_env(cross_comp_flags=True, cross_compilers=True, cross_path=True)
|
||||||
|
|
|
@ -23,8 +23,6 @@ class Xapian(Dependency):
|
||||||
f"CXX={compile_script} cl -nologo",
|
f"CXX={compile_script} cl -nologo",
|
||||||
"CXXFLAGS=-EHsc",
|
"CXXFLAGS=-EHsc",
|
||||||
"AR=lib",
|
"AR=lib",
|
||||||
"--srcdir",
|
|
||||||
"../../SOURCE/xapian-core-1.4.23",
|
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in New Issue