Ticket #19849 (closed defect: fixed)
libgeotiff doesn't build correctly with universal variant
| Reported by: | rhys.hill@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.7.1 |
| Keywords: | universal | Cc: | ryandesign@… |
| Port: | libgeotiff |
Description
the libgeotiff port uses a custom post-build step to create a dynamic library, but if the universal variant is being built, you only get your native architecture at the end, even though the source static library is universal. If this:
-arch ppc -arch i386 -arch x86_64 -arch ppc64
is added to the post-build step, it works correctly.
Attachments
Change History
comment:2 Changed 4 years ago by jmr@…
- Owner changed from macports-tickets@… to shadow@…
- Cc rhys.hill@… removed
comment:3 Changed 4 years ago by takeshi@…
I created a patch. It also fix a problem that makegeo is linked against libgeotiff.dylib in ${prefix}/lib if libgeotiff is already installed.
comment:4 Changed 4 years ago by takeshi@…
I would like to have static library installed for grads2. I update the patch.
comment:5 Changed 4 years ago by ryandesign@…
- Owner changed from shadow@… to macports-tickets@…
Derrick no longer maintains this port; see #20502
comment:6 Changed 4 years ago by ryandesign@…
- Status changed from new to closed
- Cc ryandesign@… added
- Resolution set to fixed
I updated libgeotiff to 1.2.4 in r55379. libgeotiff now includes code to build the dylib, so I removed the code in the Portfile that did that manually, which thereby fixes this ticket as well.
The code libgeotiff includes for building dylibs is still a bit broken in that it doesn't use the right install_name and doesn't use the correct filenames according to Mac OS X conventions, so I added new code in post-destroot to fix that, since I didn't feel like dissecting their Makefiles at this time.


Cc Me!