Skip to content

Commit 0bef549

Browse files
committed
Fix linux --format shared builds
1 parent 1c50e5a commit 0bef549

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

server/generate/binaries.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -357,10 +357,7 @@ func SliverSharedLibrary(name string, build *clientpb.ImplantBuild, config *clie
357357
if !config.Debug && goConfig.GOOS == WINDOWS {
358358
ldflags[0] += " -H=windowsgui"
359359
}
360-
// Statically link Linux .so files to avoid glibc hell
361-
if goConfig.GOOS == LINUX && goConfig.CC != "" && goConfig.CGO == "1" {
362-
ldflags[0] += " -linkmode external -extldflags \"-static\""
363-
}
360+
364361
// Keep those for potential later use
365362
gcFlags := ""
366363
asmFlags := ""

0 commit comments

Comments
 (0)