View | Details | Raw Unified | Return to issue 22404
Collapse All | Expand All

(-)source/linker/scpzip.cxx (-6 / +6 lines)
Lines 451-463 Link Here
451
		// temporary location and reset aSource to the temporary file so that
451
		// temporary location and reset aSource to the temporary file so that
452
		// we can package the stripped file instead of the unstripped original
452
		// we can package the stripped file instead of the unstripped original
453
		// file
453
		// file
454
#if defined(UNX) && ! defined(MACOSX)
454
#if defined(UNX)
455
		BOOL bStripCurrent = FALSE;
455
		BOOL bStripCurrent = FALSE;
456
		ByteString aExecExt( "." );
456
		ByteString aExecExt( "." );
457
		aExecExt += MASTER_EXTENSION_UNX;
457
		aExecExt += MASTER_EXTENSION_UNX;
458
#ifdef MACOSX
459
		ByteString aLibExt( ".dylib" );
460
		ByteString aSys( "strip -S -x " );
461
#else
458
		ByteString aLibExt( ".so" );
462
		ByteString aLibExt( ".so" );
459
		ByteString aSys( "strip " );
463
		ByteString aSys( "strip " );
464
#endif
460
		SiDirEntry aStripSource(aSource);
465
		SiDirEntry aStripSource(aSource);
461
		SiDirEntry aStripDest( aDestinationPath );
466
		SiDirEntry aStripDest( aDestinationPath );
462
		aStripDest += aStripSource.GetName();
467
		aStripDest += aStripSource.GetName();
Lines 1645-1656 Link Here
1645
								nTargetSystem = USHRT_MAX;
1650
								nTargetSystem = USHRT_MAX;
1646
						  } break;
1651
						  } break;
1647
				case 'S': {
1652
				case 'S': {
1648
#if defined(UNX) && ! defined(MACOSX)
1649
							bStripBinaries = TRUE;
1653
							bStripBinaries = TRUE;
1650
#else
1651
							ByteString aMsg( "warning: binary stripping is not available for this platform." );
1652
							pLog->Log( aMsg );
1653
#endif
1654
						  } break;
1654
						  } break;
1655
			case 'r':
1655
			case 'r':

Return to issue 22404