diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-03-29 22:18:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-03-29 22:18:55 +0100 |
| commit | 1ef50e8a03d559f3be3a07697a238639ac67fc24 (patch) | |
| tree | 0320b646f02d2c7d6c4c2d62cb043b87ded5627d | |
| parent | 34b2ba6ed9d41b4047d1df55a4a66b4b4b333a36 (diff) | |
Fix LocalTarget to work better (mostly making it work like a normal Linux target).
| -rwxr-xr-x | cdist | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -915,12 +915,17 @@ class SourceTarget(Target): class LocalTarget(Target): """Build on the local machine with its environment""" - def __init__(self, work): - super(LocalTarget, self).__init__('local', work) + def __init__(self, work, dependencies_only=False): + super(LocalTarget, self).__init__('linux', work, dependencies_only=dependencies_only) # Hack around ffmpeg.git which sees that the target isn't windows/osx and then assumes # distro will be there. self.distro = None + self.detail = None + self.bits = 64 self.set('PKG_CONFIG_PATH', '%s/lib/pkgconfig:%s/bin/pkgconfig' % (self.directory, self.directory)) + self.append_with_colon('LD_LIBRARY_PATH', '%s/lib' % self.directory) + self.set('CXXFLAGS', '-I%s/include' % self.directory) + self.set('LINKFLAGS', '-L%s/lib' % self.directory) def command(self, c): log_normal('host -> %s' % c) |
