fixed HAVE_BACKTRACE checks
starter Makefile now uses proper $(COMPILE) to build pluto objects
This commit is contained in:
+4
-2
@@ -29,10 +29,12 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <execinfo.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#ifdef HAVE_BACKTRACE
|
||||||
|
# include <execinfo.h>
|
||||||
|
#endif /* HAVE_BACKTRACE */
|
||||||
|
|
||||||
#include "daemon.h"
|
#include "daemon.h"
|
||||||
|
|
||||||
@@ -285,7 +287,7 @@ static void initialize(private_daemon_t *this, bool strict, bool syslog,
|
|||||||
*/
|
*/
|
||||||
void signal_handler(int signal)
|
void signal_handler(int signal)
|
||||||
{
|
{
|
||||||
#ifndef HAVE_BACKTRACE
|
#ifdef HAVE_BACKTRACE
|
||||||
void *array[20];
|
void *array[20];
|
||||||
size_t size;
|
size_t size;
|
||||||
char **strings;
|
char **strings;
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#include <execinfo.h>
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
@@ -34,6 +33,9 @@
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <printf.h>
|
#include <printf.h>
|
||||||
|
#ifdef HAVE_BACKTRACE
|
||||||
|
# include <execinfo.h>
|
||||||
|
#endif /* HAVE_BACKTRACE */
|
||||||
|
|
||||||
#include "leak_detective.h"
|
#include "leak_detective.h"
|
||||||
|
|
||||||
|
|||||||
@@ -28,10 +28,10 @@ keywords.c: keywords.txt keywords.h
|
|||||||
$(GPERF) -C -G -t < keywords.txt > keywords.c
|
$(GPERF) -C -G -t < keywords.txt > keywords.c
|
||||||
|
|
||||||
loglite.o: $(OPENACDIR)/loglite.c $(PLUTODIR)/log.h
|
loglite.o: $(OPENACDIR)/loglite.c $(PLUTODIR)/log.h
|
||||||
$(CC) $(AM_CFLAGS) $(INCLUDES) -c -o $@ $<
|
$(COMPILE) -c -o $@ $<
|
||||||
|
|
||||||
defs.o: $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
|
defs.o: $(PLUTODIR)/defs.c $(PLUTODIR)/defs.h
|
||||||
$(CC) $(AM_CFLAGS) $(INCLUDES) -c -o $@ $<
|
$(COMPILE) -c -o $@ $<
|
||||||
|
|
||||||
install-exec-local :
|
install-exec-local :
|
||||||
test -e "$(sysconfdir)/ipsec.conf" || $(INSTALL) ipsec.conf $(sysconfdir)/ipsec.conf
|
test -e "$(sysconfdir)/ipsec.conf" || $(INSTALL) ipsec.conf $(sysconfdir)/ipsec.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user