LIBRARY_NAMES does not support nested expressions

Sysprogs forums Forums VisualGDB LIBRARY_NAMES does not support nested expressions

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #501
    IzTexasa
    Participant

    LIBRARY_NAMES :=pthread `pkg-config –libs uuid` `mysql_config –libs`

    output:

    1>  /usr/bin/g++ -o Debug/p2p.elf -Wl,-gc-sections     -Wl,--start-group Debug/p2p.o Debug/PeerServer.o -lpthread -l`pkg-config -l--libs -luuid` -l`mysql_config -l--libs`  -Wl,--end-group

    must (output from NetBeans, for example):

    g++     -o dist/Debug/GNU-Linux-x86/p2p build/Debug/GNU-Linux-x86/main.o build/Debug/GNU-Linux-x86/p2p.o -lpthread `pkg-config --libs uuid` `mysql_config --libs`
    #2237
    support
    Keymaster

    Please use the shell function provided by GNU Make. E.g.:

    LIBRARY_NAMES :=pthread $(shell pkg-config --libs uuid) $(shell mysql_config --libs)
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.