Ignore:
Timestamp:
Apr 16, 2009, 12:06:15 AM (12 years ago)
Author:
Peter
Message:

fixes #522. Introduced a variable YAT_PRIMARY_LIBS that is YAT_LIBS
minus cblas and mathlib. The variable made it easier to create needed
variables in yat-config (string addition is easier than subtraction,
whatever that means). Removed variable YAT_LIBS_WITHOUT_CBLAS because
it can easily be achied via "YAT_PRIMARY_LIBS LIBM".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build_support/yat-config.in

    r1892 r1897  
    3636YAT_CXXFLAGS="@YAT_CXXFLAGS@"
    3737YAT_LDFLAGS="@YAT_LDFLAGS@"
    38 YAT_LIBS="@YAT_LIBS@"
    39 
    40 # FIXME, this should honor environment variable
    41 YAT_CBLAS_LIB=@YAT_CBLAS_LIB@
     38YAT_PRIMARY_LIBS="@YAT_PRIMARY_LIBS@"
     39LIBM="@LIBM@"
     40
     41if test "x$YAT_CBLAS_LIB" = "x"; then
     42  YAT_CBLAS_LIB=@YAT_CBLAS_LIB@
     43fi
    4244
    4345LA_FILE="$libdir/lib@YAT_LIBNAME@.la"
     
    131133    ;;
    132134    --libs)
    133     flags="$flags -l@YAT_LIBNAME@ $YAT_LIBS $LIBS"
     135    flags="$flags -l@YAT_LIBNAME@ $YAT_PRIMARY_LIBS $YAT_CBLAS_LIB $LIBM $LIBS"
    134136    ;;
    135137    --ldflags)
Note: See TracChangeset for help on using the changeset viewer.