diff --git a/parser/Makefile b/parser/Makefile index 428ebd600..e0482b83d 100644 --- a/parser/Makefile +++ b/parser/Makefile @@ -86,8 +86,8 @@ OBJECTS = $(SRCS:.c=.o) AAREDIR= libapparmor_re AAREOBJECT = ${AAREDIR}/libapparmor_re.a -AAREOBJECTS = $(AAREOBJECT) libstdc++.a -AARE_LDFLAGS=-static-libgcc -L. -L$(LIBAPPARMOR_LDPATH) +AAREOBJECTS = $(AAREOBJECT) +AARE_LDFLAGS=-static-libgcc -static-libstdc++ -L. -L$(LIBAPPARMOR_LDPATH) AALIB = -lapparmor LEX_C_FILES = parser_lex.c @@ -150,11 +150,6 @@ indep: docs all: arch indep -.PHONY: libstdc++.a -libstdc++.a: - rm -f ./libstdc++.a - ln -s `$(CXX) -print-file-name=libstdc++.a` - apparmor_parser: $(OBJECTS) $(AAREOBJECTS) $(CXX) $(LDFLAGS) $(EXTRA_CFLAGS) -o $@ $(OBJECTS) $(LIBS) \ ${LEXLIB} $(AAREOBJECTS) $(AARE_LDFLAGS) $(AALIB)