diff options
author | fergus.henderson@gmail.com <fergus.henderson@gmail.com@01de4be4-8c4a-0410-9132-4925637da917> | 2014-04-02 23:14:25 +0000 |
---|---|---|
committer | fergus.henderson@gmail.com <fergus.henderson@gmail.com@01de4be4-8c4a-0410-9132-4925637da917> | 2014-04-02 23:14:25 +0000 |
commit | 05e157e9c2f27a793f79f38077c8e45d411a4edf (patch) | |
tree | 3f7117c25bf738377e31240060fb2924f29f2afa /src/distcc.c | |
parent | f3b1400be9e1b63fadcda0b3f2493ff3693beaeb (diff) | |
download | distcc-05e157e9c2f27a793f79f38077c8e45d411a4edf.tar.gz |
Apply patch for issue 139
<http://code.google.com/p/distcc/issues/detail?id=139>:
add configure option --without-libiberty, to allow
building distcc without GPL3 license encumbrance.
git-svn-id: http://distcc.googlecode.com/svn/trunk@790 01de4be4-8c4a-0410-9132-4925637da917
Diffstat (limited to 'src/distcc.c')
-rw-r--r-- | src/distcc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/distcc.c b/src/distcc.c index b6db148..16d10a6 100644 --- a/src/distcc.c +++ b/src/distcc.c @@ -41,6 +41,7 @@ #include <errno.h> #include <signal.h> +#if HAVE_LIBIBERTY #if defined (HAVE_LIBIBERTY_H) #include <libiberty.h> #elif defined (HAVE_LIBIBERTY_LIBIBERTY_H) @@ -48,6 +49,7 @@ #else #error Need libiberty.h #endif +#endif #include "distcc.h" #include "trace.h" @@ -241,9 +243,11 @@ int main(int argc, char **argv) compiler_name = (char *) dcc_find_basename(argv[0]); +#if HAVE_LIBIBERTY /* Expand @FILE arguments. */ expandargv(&argc, &argv); - +#endif + /* Ignore SIGPIPE; we consistently check error codes and will * see the EPIPE. */ dcc_ignore_sigpipe(1); |