Skip to content

Commit

Permalink
intel_gpu: remove unnecessary linker flags
Browse files Browse the repository at this point in the history
Since the flag -lstdc++ is already included from the configure
script, it does not need to be included in the component's Rules
and Makefiles.

These changes have been tested on the Intel Max 1550 GPU.
  • Loading branch information
dbarry9 committed Dec 11, 2024
1 parent 02a5c9d commit 7c341a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/intel_gpu/Rules.intel_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GPUOBJS = GPUMetricInterface.o GPUMetricHandler.o linux_intel_gpu_metrics.o
COMPOBJS += $(GPUOBJS)

CFLAGS += $(LDL) -g -DDEBUG -I$(GPU_INTERNAL) -I$(GPU_INTERNAL)/inc -D_GLIBCXX_USE_CXX11_ABI=1
LDFLAGS += -g -lstdc++ -ldl
LDFLAGS += -g -ldl

GPUMetricInterface.o: $(GPU_INTERNAL)/src/GPUMetricInterface.cpp $(GPUHEADER)
$(CXX) -g -fpic $(CFLAGS) $(CPPFLAGS) -I$(GPU_INTERNAL)/inc -I$(INTEL_L0_HEADERS) -o GPUMetricInterface.o -c $(GPU_INTERNAL)/src/GPUMetricInterface.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/components/intel_gpu/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CFLAGS += -DDEBUG -I../../../testlib

INTEL_L0_HEADERS ?=/usr/include
INTEL_L0_LIB64 ?=/usr/lib
CPPLDFLAGS+=-lstdc++ -ldl
CPPLDFLAGS+=-ldl
GPULIB=-L$(INTEL_L0_LIB64) -lze_loader

%.o:%.c
Expand Down

0 comments on commit 7c341a6

Please sign in to comment.