]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Config: Set PREFIX either to TOOLS_DIR or /usr
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Feb 2018 11:35:41 +0000 (11:35 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 11 Feb 2018 20:56:12 +0000 (20:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
lfs/Config

index a45b76b995d00e1ca0688180427639ef089bd51f..d63a1dc9a4a313f8e073201eadce279bdfec8e37 100644 (file)
@@ -41,6 +41,12 @@ ifeq "$(BUILD_ARCH)" "x86_64"
        IS_64BIT = 1
 endif
 
+ifeq "$(TOOLCHAIN)" "1"
+       PREFIX = $(TOOLS_DIR)
+else
+       PREFIX = /usr
+endif
+
 # URLs that are common sources of downloads.  If you're having trouble with
 # a site you should change its URL to that of a suitable mirror site.
 #