[csw-maintainers] GAR: Adding a /opt/csw/lib/foo/64 -->	/opt/csw/lib/foo/{amd64, sparcv9} link
    Dagobert Michelsen 
    dam at opencsw.org
       
    Tue Nov 24 17:01:52 CET 2009
    
    
  
Hi Maciej,
Am 23.11.2009 um 22:57 schrieb Maciej (Matchek) Blizinski:
> It seems to me as those links are very useful.  When you have the 64
> --> {sparcv9,amd64} symlinks, you can say:
>
> LD_OPTIONS = -R/opt/csw/lib/$ISALIST -R/opt/csw/lib/64
>
> ...and it will work on both sparcv9 and amd64.
>
> Here's how I did it in GAR:
>
> post-merge:
>        if [ "$(GARCH)" = sparc ]; then \
>                gln -sf sparc9 $(PKGROOT)$(libdir)/64; \
>        elif [ "$(GARCH)" = i386 ]; then \
>                gln -sf amd64 $(PKGROOT)$(libdir)/64; \
>        fi
>        @$(MAKECOOKIE)
It is easier to use this:
post-merge-modulated:
	gln -s $(ISA_DEFAULT64) $(PKGROOT)$(libdir)/64
	@$(MAKECOOKIE)
ISA_DEFAULT contains the default 32 bit ISA on this platform,
ISA_DEFAULT64 contains the default 64 bit ISA on this platform.
Best regards
   -- Dago
    
    
More information about the maintainers
mailing list