We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47e9ec3 commit 43b4b90Copy full SHA for 43b4b90
CMakeLists.txt
@@ -655,6 +655,7 @@ if(DEFINED NEP_DIR)
655
656
if(NEP_FOUND)
657
add_compile_definitions(__NEP)
658
+ add_compile_options(-Wl,--no-as-needed)
659
target_link_libraries(${ABACUS_BIN_NAME} NEP::nep_cpu)
660
endif()
661
toolchain/scripts/stage4/install_nepcpu.sh
@@ -142,7 +142,7 @@ EOF
142
export NEPCPU_CFLAGS="${NEPCPU_CFLAGS}"
143
export NEPCPU_LDFLAGS="${NEPCPU_LDFLAGS}"
144
export NEPCPU_LIBS="${NEPCPU_LIBS}"
145
-export CP_DFLAGS="\${CP_DFLAGS} -D__NEPCPU"
+export CP_DFLAGS="\${CP_DFLAGS} -D__NEP"
146
export CP_CFLAGS="\${CP_CFLAGS} \${NEPCPU_CFLAGS}"
147
export CP_LDFLAGS="\${CP_LDFLAGS} \${NEPCPU_LDFLAGS}"
148
export CP_LIBS="\${NEPCPU_LIBS} \${CP_LIBS}"
0 commit comments