Skip to content

Commit 00c75b4

Browse files
committed
Use path to archive file for linking
1 parent 6a2d6e7 commit 00c75b4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fpm/src/fpm_backend.f90

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ subroutine build_package(model)
3333
end if
3434

3535
if (model%targets(1)%ptr%target_type == FPM_TARGET_ARCHIVE) then
36-
linking = ' -l'//model%package_name//" -L"//&
37-
join_path(model%output_directory,model%package_name)
36+
linking = " "//model%targets(1)%ptr%output_file
3837
else
3938
linking = " "
4039
end if

0 commit comments

Comments
 (0)