forked from Imagelibrary/rtems
Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:
Some Makefile.ins depend on gcc by hard-coded gcc-specific compiler
flags:
-g added to CFLAGS /LDFLAGS in
> find . -name Makefile.in -exec grep -l ' \-g' {} \;
./c/src/lib/libbsp/i386/i386ex/startup/Makefile.in
./c/src/lib/libbsp/i386/pc386/tools/Makefile.in
-Wall added CFLAGS in
> find . -name Makefile.in -exec grep -l ' \-Wall' {} \;
./c/src/exec/score/tools/sh/Makefile.in
./c/src/lib/libbsp/i386/pc386/tools/Makefile.in
Both -g and -Wall should not be used in any Makefile.in (Yes, I know,
tools/sh/Makefile.in was written by me :-).
I'd like to propose to remove these flags from the files mentioned
above.
This commit is contained in:
@@ -32,7 +32,7 @@ include $(RTEMS_ROOT)/make/leaf.cfg
|
||||
# Add local stuff here using +=
|
||||
#
|
||||
|
||||
DEFINES += -Wall
|
||||
DEFINES +=
|
||||
CPPFLAGS += -I.
|
||||
CFLAGS +=
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ include $(RTEMS_ROOT)/make/leaf.cfg
|
||||
|
||||
DEFINES += -I$(srcdir) -DBSP_IS_I386EX=1
|
||||
CPPFLAGS +=
|
||||
CFLAGS += -g
|
||||
CFLAGS +=
|
||||
|
||||
LD_PATHS +=
|
||||
LD_LIBS +=
|
||||
|
||||
@@ -46,7 +46,7 @@ include $(RTEMS_ROOT)/make/leaf.cfg
|
||||
|
||||
DEFINES +=
|
||||
CPPFLAGS +=
|
||||
CFLAGS += -g -Wall
|
||||
CFLAGS +=
|
||||
CXXFLAGS +=
|
||||
|
||||
LD_PATHS +=
|
||||
|
||||
@@ -32,7 +32,7 @@ include $(RTEMS_ROOT)/make/leaf.cfg
|
||||
# Add local stuff here using +=
|
||||
#
|
||||
|
||||
DEFINES += -Wall
|
||||
DEFINES +=
|
||||
CPPFLAGS += -I.
|
||||
CFLAGS +=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user