Ticket #12435: lcalc-cxx-flag.patch

File lcalc-cxx-flag.patch, 931 bytes (added by R. Andrew Ohana, 11 years ago)

for review purposes

  • patches/Makefile.patch

    # HG changeset patch
    # User R. Andrew Ohana <andrew.ohana@gmail.com>
    # Date 1328381406 28800
    # Node ID be68143421e3996b89947c4be369c5a731e56dbd
    # Parent  3813f084611b3d220492dd794aca4d034484a0ff
    make spkg respect global CXX flag
    
    diff --git a/patches/Makefile.patch b/patches/Makefile.patch
    a b  
    8787 
    8888 libLfunction.so: $(OBJ_L)
    8989-       g++ -$(DYN_OPTION)  -o libLfunction.so $(OBJ_L)
    90 +       g++ -$(DYN_OPTION) $(CXXFLAG64) -o libLfunction.so $(OBJ_L)
     90+       $(CC) -$(DYN_OPTION) $(CXXFLAG64) -o libLfunction.so $(OBJ_L)
    9191 
    9292 clean:
    9393        rm -f *.o lcalc libLfunction.so example_programs/example
  • spkg-install

    diff --git a/spkg-install b/spkg-install
    a b  
    196196
    197197# Build everything:
    198198echo >&2 "Now building lcalc, example programs and the shared library..."
    199 $MAKE
     199$MAKE CC=$CXX
    200200success 'make'
    201201
    202202echo >&2 "Now copying over lcalc binary..."