From 9b112384679c0953b27c1a9cd8ca38c1422a659d Mon Sep 17 00:00:00 2001 From: James Page Date: Thu, 12 Jul 2012 10:07:31 +0100 Subject: [PATCH] Observe build environment flags and use PYTHONPATH when generating version number --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c667a03..83de871 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ mn.1: $(MN) --no-discard-stderr $< -o $@ mnexec: mnexec.c $(MN) mininet/net.py - cc -DVERSION=\"`$(MN) --version`\" $< -o $@ + cc $(CFLAGS) $(LDFLAGS) -DVERSION=\"`PYTHONPATH=. $(MN) --version`\" $< -o $@ mnexec.1: mnexec help2man -N -n "execution utility for Mininet." \