Changeset 5964f52


Ignore:
Timestamp:
12/06/18 18:45:22 (23 months ago)
Author:
Richard Sanger <rsanger@…>
Branches:
develop
Children:
5097267
Parents:
5141cd6
Message:

Fix for issue #86 clobbered LDFLAGS

Save a copy of linker and preprocessor flags and restore them
after DPDK clobbers them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/Makefile.am

    rdab79f2 r5964f52  
    4343export SAVED_CFLAGS:=$(CFLAGS)
    4444export SAVED_CXXFLAGS:=$(CXXFLAGS)
     45export SAVED_CPPFLAGS:=$(CPPFLAGS)
     46export SAVED_LDFLAGS:=$(LDFLAGS)
    4547include $(RTE_SDK)/mk/rte.vars.mk
    4648# We need to add -Wl before the linker otherwise this breaks our build
     
    5052export CFLAGS += $(SAVED_CFLAGS)
    5153export CXXFLAGS += $(SAVED_CXXFLAGS)
     54export CPPFLAGS:=$(SAVED_CPPFLAGS)
     55export LDFLAGS += $(SAVED_LDFLAGS)
    5256endif
    5357
Note: See TracChangeset for help on using the changeset viewer.