Skip to content

Commit fa29224

Browse files
committed
variable renamed
1 parent 543c8a7 commit fa29224

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

legacy/builder/phases/libraries_builder.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func fixLDFLAG(ctx *types.Context, libs libraries.List) error {
120120
}
121121
// find all library names in the folder and prepend -l
122122
filePaths := []string{}
123-
libs_cmd := library.LDflags + " "
123+
libsCmd := library.LDflags + " "
124124
extensions := func(ext string) bool {
125125
return PRECOMPILED_LIBRARIES_VALID_EXTENSIONS_DYNAMIC[ext] || PRECOMPILED_LIBRARIES_VALID_EXTENSIONS_STATIC[ext]
126126
}
@@ -130,12 +130,12 @@ func fixLDFLAG(ctx *types.Context, libs libraries.List) error {
130130
// strip "lib" first occurrence
131131
if strings.HasPrefix(name, "lib") {
132132
name = strings.Replace(name, "lib", "", 1)
133-
libs_cmd += "-l" + name + " "
133+
libsCmd += "-l" + name + " "
134134
}
135135
}
136136

137137
currLDFlags := ctx.BuildProperties.Get(constants.BUILD_PROPERTIES_COMPILER_LIBRARIES_LDFLAGS)
138-
ctx.BuildProperties.Set(constants.BUILD_PROPERTIES_COMPILER_LIBRARIES_LDFLAGS, currLDFlags+"\"-L"+path.String()+"\" "+libs_cmd+" ")
138+
ctx.BuildProperties.Set(constants.BUILD_PROPERTIES_COMPILER_LIBRARIES_LDFLAGS, currLDFlags+"\"-L"+path.String()+"\" "+libsCmd+" ")
139139
}
140140
return nil
141141
}

0 commit comments

Comments
 (0)