fix compilation and linking issues. use __cxa_demangle for now so depend

on libstdc++
This commit is contained in:
2020-02-02 12:54:54 +04:00
parent dbaffdf689
commit 5e6b78a82c
4 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ SRC = $(shell find . -name '*.cpp')
#OBJ = $(patsubst %.cpp,%.o,$(addprefix $(BUILD_DIR)/,$(notdir $(SRC)))) #OBJ = $(patsubst %.cpp,%.o,$(addprefix $(BUILD_DIR)/,$(notdir $(SRC))))
OBJ = $(BUILD_DIR)/main.o OBJ = $(BUILD_DIR)/main.o
LIBS = -L./ -lpthread -luuid -ldl -ldw -lunwind -lunwind-x86_64 LIBS = -L./ -lpthread -luuid -ldl -ldw -lunwind -lunwind-x86_64 -lstdc++
ATR_LIBS = ./build/libframework.a ATR_LIBS = ./build/libframework.a
INCS = -I./ \ INCS = -I./ \
+1
View File
@@ -6,6 +6,7 @@
*/ */
#include <dwarf.h> #include <dwarf.h>
#include <stdlib.h>
#include <cxxabi.h> #include <cxxabi.h>
#include "dwarf_function.h" #include "dwarf_function.h"
-1
View File
@@ -9,7 +9,6 @@
#define SC_SYSUTILS_H_ #define SC_SYSUTILS_H_
//system //system
#include <string>
#include <netdb.h> #include <netdb.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
-1
View File
@@ -1,5 +1,4 @@
//system //system
#include <iostream>
#include <stdlib.h> #include <stdlib.h>
#include <fcntl.h> #include <fcntl.h>