From f66b9f147ecf5db067e36719784a552a5909b3fc Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Sat, 16 Mar 2013 18:09:04 +0100 Subject: build: respect PREFIX_STRING on config file locations When setting a prefix from the build system, also pass this through the hard coded strings for config file locations in the toolkit, so that the installed files (which use PREFIX) can be properly found. Suggested-by: Peter Stuge Signed-off-by: Daniel Borkmann --- trafgen_parser.y | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'trafgen_parser.y') diff --git a/trafgen_parser.y b/trafgen_parser.y index ece3b25..9d2dd09 100644 --- a/trafgen_parser.y +++ b/trafgen_parser.y @@ -576,7 +576,8 @@ int compile_packets(char *file, int verbose, int cpu, bool invoke_cpp) base = basename((b = xstrdup(file))); slprintf(tmp_file, sizeof(tmp_file), "%s/.tmp-%u-%s", dir, rand(), base); - slprintf(cmd, sizeof(cmd), "cpp -I/etc/netsniff-ng/ %s > %s", file, tmp_file); + slprintf(cmd, sizeof(cmd), "cpp -I" PREFIX_STRING + "/etc/netsniff-ng/ %s > %s", file, tmp_file); system(cmd); file = tmp_file; -- cgit v1.2.3-54-g00ecf