Skip to content

Commit

Permalink
-imacros appears to cause issues with debugging symbol generation
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Feb 28, 2014
1 parent 2e5f2b4 commit edefb56
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Make.inc.in
Expand Up @@ -47,8 +47,11 @@ MAKEFLAGS = @FR_MAKEFLAGS@

CC = @CC@
RANLIB = @RANLIB@
IMACROS = -imacros ${top_srcdir}/src/freeradius-devel/build.h -imacros ${top_srcdir}/src/freeradius-devel/autoconf.h -imacros ${top_srcdir}/src/freeradius-devel/features.h
INCLUDE = -I${top_srcdir} -I${top_srcdir}/src

INCLUDE = -I${top_srcdir} -I${top_srcdir}/src \
-include ${top_srcdir}/src/freeradius-devel/build.h \
-include ${top_srcdir}/src/freeradius-devel/autoconf.h \
-include ${top_srcdir}/src/freeradius-devel/features.h
CFLAGS = $(IMACROS) $(INCLUDE) -std=c99 -fno-strict-aliasing @CFLAGS@
CPPFLAGS = @CPPFLAGS@
LIBPREFIX = @LIBPREFIX@
Expand Down Expand Up @@ -131,11 +134,11 @@ endif

# http://clang.llvm.org/StaticAnalysis.html
#
# $ make SCAN=/path/to/checker/
# $ make SCAN=/path/to/checker/
#
ifneq ($(SCAN),)
CC := $(SCAN)/scan-build gcc -DFR_SCAN_BUILD
LIBTOOL :=
LIBTOOL :=
endif

#
Expand All @@ -150,7 +153,7 @@ LINK_MODE.exe = -static
endif

ifneq "$(LIBTOOL)" ""
COMPILE.c := $(LIBTOOL) --quiet --mode=compile $(CC)
COMPILE.c := $(LIBTOOL) --quiet --mode=compile $(CC)
LINK.lib := $(LIBTOOL) --quiet --mode=link $(CC) -rpath $(libdir) -o
LO := lo
LA := la
Expand Down

0 comments on commit edefb56

Please sign in to comment.