summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-03-07 10:45:26 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-03-10 21:14:42 (GMT)
commit8e14c0429d23bde17451b982d5b3d58f3b685fe8 (patch)
tree735d0068cbe6457c0def73361041982d316d11b0
parent2a86ea7fc968f297e5b8c6679770d6b5b8fd4646 (diff)
downloadbuildroot-8e14c0429d23bde17451b982d5b3d58f3b685fe8.tar.gz
buildroot-8e14c0429d23bde17451b982d5b3d58f3b685fe8.tar.bz2
gptfdisk: use TARGET_CONFIGURE_OPTS properly, use TARGET_MAKE_ENV
$(TARGET_CONFIGURE_OPTS) should be passed as $(MAKE) argument, not in the environment. We can then remove the redefined CC and LD variables that were useless. We also take this opportunity to pass $(TARGET_MAKE_ENV) in the environment of make. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/gptfdisk/gptfdisk.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/package/gptfdisk/gptfdisk.mk b/package/gptfdisk/gptfdisk.mk
index 2d3cb1a..656a187 100644
--- a/package/gptfdisk/gptfdisk.mk
+++ b/package/gptfdisk/gptfdisk.mk
@@ -15,10 +15,9 @@ ifeq ($(BR2_PACKAGE_GPTFDISK_SGDISK),y)
GPTFDISK_DEPENDENCIES += popt
endif
-
define GPTFDISK_BUILD_CMDS
- $(TARGET_CONFIGURE_OPTS) $(MAKE) CC="$(TARGET_CC)" CXX="$(TARGET_CXX)" \
- -C $(@D) $(GPTFDISK_TARGETS_y)
+ $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
+ $(GPTFDISK_TARGETS_y)
endef
define GPTFDISK_INSTALL_TARGET_CMDS