Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 66278b62 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "symbols in stub library isn't affected by -fvisibility=hidden"

parents a21e9ddc 48d75efa
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -269,6 +269,10 @@ func addStubLibraryCompilerFlags(flags Flags) Flags {
		// (avoids the need to link an unwinder into a fake library).
		"-fno-unwind-tables",
	)
	// All symbols in the stubs library should be visible.
	if inList("-fvisibility=hidden", flags.Local.CFlags) {
		flags.Local.CFlags = append(flags.Local.CFlags, "-fvisibility=default")
	}
	return flags
}