[PATCH openpower-host-ipmi-oem v3 6/7] Clean up Makefile

OpenBMC Patches patches at stwcx.xyz
Sat Oct 17 07:29:40 AEDT 2015


From: Chris Austen <austenc at us.ibm.com>

---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index e2ed670..2dbcc46 100644
--- a/Makefile
+++ b/Makefile
@@ -6,22 +6,22 @@ TESTER_OBJ  = testit.o oemhandler.o
 LIB_OEM_OBJ = oemhandler.o
 LIB_OEM     = liboemhandler.so
 
-LDFLAGS += -rdynamic
+LDFLAGS += -rdynamic -ldl
 CXXFLAGS += -fpic -Wall
 
 
 all:  $(TESTER) $(LIB_OEM)
 
 %.o: %.C
-	$(CXX) -fpic -c $< $(CXXFLAGS) -o $@
+	$(CXX) -c $< $(CXXFLAGS) -o $@
 	
 
 $(LIB_OEM): $(LIB_OEM_OBJ)
-	$(CXX) $^ -shared $(LDFLAGS) $(LIB_FLAG) -o $@
+	$(CXX) $^ -shared $(LDFLAGS) -o $@
 
 
 $(TESTER): $(TESTER_OBJ)
-	$(CXX) $^ $(LDFLAGS) $(LIB_FLAG) -o $@ -ldl
+	$(CXX) $^ $(LDFLAGS) -o $@ -ldl
 
 clean:
 	$(RM) $(LIB_OEM_OBJ) $(LIB_OEM) $(TESTER_OBJ) $(TESTER)
-- 
2.6.0




More information about the openbmc mailing list