Bug 54720 - libobjc install-strip target not populated
Summary: libobjc install-strip target not populated
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: libobjc (show other bugs)
Version: 4.7.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: build, easyhack
Depends on:
Blocks:
 
Reported: 2012-09-26 20:05 UTC by John Marino
Modified: 2021-10-25 16:59 UTC (History)
4 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2017-07-23 00:00:00


Attachments
Differences between "find staged" for each of "install-strip" and "install" cases. (520 bytes, text/plain)
2015-07-20 20:09 UTC, Keith Marshall
Details
Make install-strip work for libobjc (749 bytes, patch)
2017-06-04 12:34 UTC, Keith Marshall
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Marino 2012-09-26 20:05:07 UTC
On versions 4.7.1 and 4.7.2:
executing "make install" after the build will result in the installation of the libobjc.* files when objc is specified in --enable-langs

However, "make install-strip" doesn't install the libobjc.* files in the library installation directory.  It seems the libobjc/makefile has completely omitted this target although it references it.


The fix is easy: Add the install-strip target to the libobjc/Makefile.in file.
Comment 1 Keith Marshall 2015-07-20 20:07:18 UTC
This appears to afflict version 4.8.5 too. After successfully completing a crossed-native build for the mingw32 target,

  make prefix=`pwd`/staged install-strip

omits all libraries, associated headers, and the associated dll for the libobjc component, whereas

  make prefix=`pwd`/staged install

includes them.  The difference in installed inventory, between execution of each of these commands is attached.
Comment 2 Keith Marshall 2015-07-20 20:09:26 UTC
Created attachment 36018 [details]
Differences between "find staged" for each of "install-strip" and "install" cases.
Comment 3 Keith Marshall 2017-05-19 14:07:13 UTC
And, more than 4 years later, this issue persists in GCC-6.3.0
Comment 4 Keith Marshall 2017-06-04 12:34:35 UTC
Created attachment 41468 [details]
Make install-strip work for libobjc

FWIW, I've applied the attached patch, for the MinGW.org binary distribution of GCC-6.3.0
Comment 5 Eric Gallager 2017-07-23 21:38:16 UTC
(In reply to Keith Marshall from comment #4)
> Created attachment 41468 [details]
> Make install-strip work for libobjc
> 
> FWIW, I've applied the attached patch, for the MinGW.org binary distribution
> of GCC-6.3.0

Could you submit this patch to the gcc-patches mailing list please? Anyways, I'm confirming that the install-strip target in libobjc/Makefile.in is still unpopulated.
Comment 6 Eric Gallager 2019-07-26 21:37:13 UTC
cc-ing libobjc maintainers
Comment 7 Eric Gallager 2021-10-25 16:59:49 UTC
The GNU Coding Standards contain an example of a simple way to do this: https://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets