IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 23, 2022, 1:21:41 PM (4 years ago)
Author:
eugene
Message:

add linker option -Wl,--allow-multiple-definition to support gcc >= 11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20220316/Ohana/Makefile.Common

    r41492 r42141  
    8484        @echo ""
    8585
     86# USE THIS? -Wl,--allow-multiple-definition
     87
    8688$(LIB)/%.$(ARCH).so:
    8789        @if [ ! -d $(LIB) ]; then mkdir -p $(LIB); fi
    8890        rm -f $@
    89         gcc -shared -Wl,-soname,$*.so -o $@ $^ -lc
     91#       gcc -shared -Wl,-soname,$*.so -o $@ $^ -lc
     92        gcc -shared -Wl,-soname,$*.so -o $@ $^ -lc -Wl,--allow-multiple-definition
    9093        @echo "compiled shared library $*"
    9194        @echo ""
Note: See TracChangeset for help on using the changeset viewer.