Skip to content

Commit 01cff40

Browse files
authored
Merge pull request #266 from RemiLehe/fix_openpmd_gpu
Fix compilation flag for openPMD with nvcc
2 parents 941a74c + 2254b06 commit 01cff40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Make.WarpX

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ ifeq ($(USE_OPENPMD), TRUE)
101101
ifeq (0, $(shell pkg-config "openPMD >= 0.9.0"; echo $$?))
102102
CXXFLAGS += $(shell pkg-config --cflags openPMD)
103103
LDFLAGS += $(shell pkg-config --libs openPMD)
104-
LDFLAGS += -Wl,-rpath,$(shell pkg-config --variable=libdir openPMD)
104+
LDFLAGS += -Xlinker -rpath -Xlinker $(shell pkg-config --variable=libdir openPMD)
105105
# fallback to manual settings
106106
else
107107
OPENPMD_LIB_PATH ?= NOT_SET

0 commit comments

Comments
 (0)