diff options
Diffstat (limited to 'src/util/gnunet-config.c')
-rw-r--r-- | src/util/gnunet-config.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/util/gnunet-config.c b/src/util/gnunet-config.c index 0a5c0712b..11682daea 100644 --- a/src/util/gnunet-config.c +++ b/src/util/gnunet-config.c | |||
@@ -167,19 +167,22 @@ run (void *cls, | |||
167 | (void) args; | 167 | (void) args; |
168 | if (1 == cflags || 1 == libs || 1 == prefix) | 168 | if (1 == cflags || 1 == libs || 1 == prefix) |
169 | { | 169 | { |
170 | /* These values are defined in the makefile */ | 170 | char *prefixdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_PREFIX); |
171 | char *libdir = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_LIBDIR); | ||
171 | if (1 == cflags) | 172 | if (1 == cflags) |
172 | { | 173 | { |
173 | fprintf (stdout, "%s\n", "-I"INCLUDEDIR); | 174 | fprintf (stdout, "-I%sinclude\n", prefixdir); |
174 | } | 175 | } |
175 | if (1 == libs) | 176 | if (1 == libs) |
176 | { | 177 | { |
177 | fprintf (stdout, "%s\n", "-L"LIBDIR" -lgnunetutil"); | 178 | fprintf (stdout, "-L%s -lgnunetutil\n", libdir); |
178 | } | 179 | } |
179 | if (1 == prefix) | 180 | if (1 == prefix) |
180 | { | 181 | { |
181 | fprintf (stdout, "%s\n", PREFIX); | 182 | fprintf (stdout, "%s\n", prefixdir); |
182 | } | 183 | } |
184 | GNUNET_free (prefixdir); | ||
185 | GNUNET_free (libdir); | ||
183 | return; | 186 | return; |
184 | } | 187 | } |
185 | if (NULL != backend_check) | 188 | if (NULL != backend_check) |