Skip to content

Commit 14b777f

Browse files
committed
Allow multiple precompiled libraries to be included and linked
1 parent 55251c5 commit 14b777f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: phases/libraries_builder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func fixLDFLAGforPrecompiledLibraries(ctx *types.Context, libraries []*types.Lib
9090
name = strings.Replace(name, "lib", "", 1)
9191
libs_cmd += "-l" + name + " "
9292
}
93-
ctx.BuildProperties[constants.BUILD_PROPERTIES_COMPILER_LIBRARIES_LDFLAGS] = "\"-L" + path + "\" " + libs_cmd
93+
ctx.BuildProperties[constants.BUILD_PROPERTIES_COMPILER_LIBRARIES_LDFLAGS] += "\"-L" + path + "\" " + libs_cmd + " "
9494
}
9595
}
9696
return nil

0 commit comments

Comments
 (0)