Opened 15 months ago
Closed 15 months ago
#67899 closed defect (fixed)
libstemmer: does not respect MACOSX_DEPLOYMENT_TARGET or SDKROOT
Reported by: | lukaso (Lukas Oberhuber) | Owned by: | jmroot (Joshua Root) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | libstemmer |
Description
This means it is always built for the current SDK/OS (which breaks ability to build GIMP for older OSs.
otool -l ~/macports-gimp3-x86_64/lib/libstemmer.dylib
Output:
... Load command 10 cmd LC_BUILD_VERSION cmdsize 32 platform 1 minos 13.0 sdk 13.3 ntools 1 tool 3 version 857.1 ...
Attachments (1)
Change History (6)
Changed 15 months ago by lukaso (Lukas Oberhuber)
Attachment: | libstemmper-main.log added |
---|
comment:1 follow-up: 4 Changed 15 months ago by lukaso (Lukas Oberhuber)
It needs something like:
CFLAGS += -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET LDFLAGS += -Wl,-macosx_version_min,$MACOSX_DEPLOYMENT_TARGET
being added to the GNUMakefile
comment:2 Changed 15 months ago by kencu (Ken)
It's also not UsingTheRightCompiler:
cc -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations -c -o compiler/space.o compiler/space.c
comment:3 Changed 15 months ago by kencu (Ken)
adding the Makefile 1.0 PG helps:
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_textproc_libstemmer/libstemmer/work/compwrap/cc/usr/bin/clang -O2 -W -Wall -Wmissing-prototypes -Wmissing-declarations -c -o compiler/space.o compiler/space.c
comment:4 Changed 15 months ago by ryandesign (Ryan Carsten Schmidt)
Replying to lukaso:
It needs something like:
CFLAGS += -mmacosx-version-min=$MACOSX_DEPLOYMENT_TARGET LDFLAGS += -Wl,-macosx_version_min,$MACOSX_DEPLOYMENT_TARGETbeing added to the GNUMakefile
MacPorts automatically sets the MACOSX_DEPLOYMENT_TARGET
environment variable to the correct value during all port phases which is sufficient unless the build system is deliberately overriding that elsewhere.
comment:5 Changed 15 months ago by jmroot (Joshua Root)
Owner: | set to jmroot |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Build log from libstemmer (sorry for the file name).