From 00c75b4dbaa19a15d3f0e92ff9dbacf8b334a2bf Mon Sep 17 00:00:00 2001 From: LKedward Date: Sat, 7 Nov 2020 14:04:00 +0000 Subject: Use path to archive file for linking --- fpm/src/fpm_backend.f90 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fpm/src/fpm_backend.f90 b/fpm/src/fpm_backend.f90 index e8f51cc..f70f477 100644 --- a/fpm/src/fpm_backend.f90 +++ b/fpm/src/fpm_backend.f90 @@ -33,8 +33,7 @@ subroutine build_package(model) end if if (model%targets(1)%ptr%target_type == FPM_TARGET_ARCHIVE) then - linking = ' -l'//model%package_name//" -L"//& - join_path(model%output_directory,model%package_name) + linking = " "//model%targets(1)%ptr%output_file else linking = " " end if -- cgit v1.2.3