Public bug reported:

Binary package hint: lrslib

The upstream lrs(lib) (http://cgm.cs.mcgill.ca/~avis/C/lrs.html)
includes an option to build the non-gmp versions (which does not
interest me in itself) for 64bit systems (make all64); the makefile
lacks a gmp-equivalent option. I tried creating one by adding -DB64 at
appropriate places:

gmp64:  fourier.c 2gnash.c lrs.c redund.c lrslib.h lrslib.c lrsgmp.h lrsgmp.c 
nash.c
        gcc -O3 -static -DTIMES -DSIGNALS -DB64  -DGMP -I${INCLUDEDIR} lrs.c 
lrslib.c lrsgmp.c -L${LIBDIR}  -lgmp -o glrs
        gcc -O3 -static -DTIMES -DSIGNALS -DB64 -DGMP -I${INCLUDEDIR} redund.c 
lrslib.c lrsgmp.c -L${LIBDIR} -lgmp -o gredund
        gcc -O3 -static -DLRS_QUIET -DTIMES -DSIGNALS -DB64 -DGMP 
-I${INCLUDEDIR} nash.c lrslib.c lrsgmp.c -L${LIBDIR} -lgmp -o gnash
        gcc -O3 -static -DTIMES -DSIGNALS -DB64  -DGMP -I${INCLUDEDIR} 
fourier.c lrslib.c lrsgmp.c -L${LIBDIR}  -lgmp -o gfourier
        gcc -O3 -o buffer buffer.c
        gcc -O3 -o 2gnash 2gnash.c
        gcc -O3 -static -DTIMES -DSIGNALS -DB64  -DGMP -I${INCLUDEDIR} 
fourier.c lrslib.c lrsgmp.c -L${LIBDIR}  -lgmp -o gfourier

This seems to work fine, and the resulting executables seem to work fine
as well. Would it be possible to apply this to the 64bit package (and
push it upstream)? (I do not know why gfourier is built twice, but I'm
not very familiar with makefiles.)

N.B.: "make clean" does not clean 2gnash

** Affects: lrslib (Ubuntu)
     Importance: Undecided
         Status: New

-- 
lrslib uses 32bit version for 64bit package
https://bugs.launchpad.net/bugs/581922
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to