#8112: flint fails to build in Open Solaris x64 as 64 bit if CFLAGS is not set
----------------------------+-----------------------------------------------
   Reporter:  jsp           |       Owner:  drkirkby    
       Type:  defect        |      Status:  needs_review
   Priority:  major         |   Milestone:  sage-4.3.4  
  Component:  porting       |    Keywords:              
     Author:  Jaap Spies    |    Upstream:  N/A         
   Reviewer:  David Kirkby  |      Merged:              
Work_issues:                |  
----------------------------+-----------------------------------------------
Changes (by jsp):

  * status:  needs_work => needs_review


Comment:

 Done as you suggested. We pass $CFLAG64 to FLINT_TUNE if SAGE64=yes.
 But export CXXFLAG64 appropriate. See makefile.

 {{{
 # Since this code uses the C++ compiler as a linker to produce
 # a library, the -m64 (or equivalent) option must be provided, as it
 # it is in the line above where the target is libflint.dylib64

 libflint.so: $(FLINTOBJ)
         $(CPP) $(CXXFLAG64) -fPIC -shared -o libflint.so $(FLINTOBJ)
 $(LIBS)
 }}}


 {{{
 Found gcc 4 or later
 g++  -m64 -fPIC -shared -o libflint.so zn_mod.o misc.o mul_ks.o pack.o
 mul.o mulmid.o mulmid_ks.o ks_support.o mpn_mulmid.o nuss.o pmf.o
 pmfvec_fft.o tuning.o mul_fft.o mul_fft_dft.o array.o invert.o
 mpn_extras.o mpz_extras.o memory-manager.o ZmodF.o ZmodF_mul.o ZmodF_mul-
 tuning.o fmpz.o fmpz_poly.o mpz_poly-tuning.o mpz_poly.o ZmodF_poly.o
 long_extras.o zmod_poly.o theta.o zmod_mat.o F_mpz.o tinyQS.o
 factor_base.o poly.o sieve.o linear_algebra.o block_lanczos.o NTL-
 interface.o -L/export/home/jaap/Downloads/sage-4.3.3.alpha1/local/lib/
 -L/export/home/jaap/Downloads/sage-4.3.3.alpha1/local/lib/  -lgmp
 -lpthread -lntl -lm
 Deleting old FLINT
 Installing new library file

 }}}


 New spkg with the same name:
 [http://boxen.math.washington.edu/home/jsp/ports/flint-1.5.0.p4.spkg]


 Jaap

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8112#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to