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

Commit adc81a07 authored by Colin Cross's avatar Colin Cross
Browse files

Don't strip stub libraries

LLNDK and NDK stubs are already not stripped, don't strip APEX stubs
either.

Test: m checkbuild
Change-Id: I9a50df4b8b73d764ca81634a8a3014726eceda99
parent 175500f0
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -977,7 +977,12 @@ func (library *libraryDecorator) linkShared(ctx ModuleContext,
	transformSharedObjectToToc(ctx, outputFile, tocFile, builderFlags)

	stripFlags := flagsToStripFlags(flags)
	if library.stripper.NeedsStrip(ctx) {
	needsStrip := library.stripper.NeedsStrip(ctx)
	if library.buildStubs() {
		// No need to strip stubs libraries
		needsStrip = false
	}
	if needsStrip {
		if ctx.Darwin() {
			stripFlags.StripUseGnuStrip = true
		}