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.
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.
Created attachment 36018 [details] Differences between "find staged" for each of "install-strip" and "install" cases.
And, more than 4 years later, this issue persists in GCC-6.3.0
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
(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.
cc-ing libobjc maintainers
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