RPM spec for building MiniUPnPc on CentOS 8
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

33 lines
1.7 KiB

diff -up miniupnpc-1.9/CMakeLists.txt.orig miniupnpc-1.9/CMakeLists.txt
--- miniupnpc-1.9/CMakeLists.txt.orig 2014-04-16 00:13:30.289068350 -0300
+++ miniupnpc-1.9/CMakeLists.txt 2014-04-16 00:16:15.527074677 -0300
@@ -128,25 +128,25 @@ if (UPNPC_BUILD_TESTS)
target_link_libraries (testminixml ${LDLIBS})
add_executable (minixmlvalid minixmlvalid.c minixml.c)
- target_link_libraries (minixmlvalid ${LDLIBS})
+ target_link_libraries (minixmlvalid ${LDLIBS} -L. -lminiupnpc)
add_executable (testupnpreplyparse testupnpreplyparse.c
minixml.c upnpreplyparse.c)
- target_link_libraries (testupnpreplyparse ${LDLIBS})
+ target_link_libraries (testupnpreplyparse ${LDLIBS} -L. -lminiupnpc)
add_executable (testigddescparse testigddescparse.c
igd_desc_parse.c minixml.c miniupnpc.c miniwget.c minissdpc.c
upnpcommands.c upnpreplyparse.c minisoap.c connecthostport.c
portlistingparse.c receivedata.c
)
- target_link_libraries (testigddescparse ${LDLIBS})
+ target_link_libraries (testigddescparse ${LDLIBS} -L. -lminiupnpc)
add_executable (testminiwget testminiwget.c
miniwget.c miniupnpc.c minisoap.c upnpcommands.c minissdpc.c
upnpreplyparse.c minixml.c igd_desc_parse.c connecthostport.c
portlistingparse.c receivedata.c
)
- target_link_libraries (testminiwget ${LDLIBS})
+ target_link_libraries (testminiwget ${LDLIBS} -L. -lminiupnpc)
# set (UPNPC_INSTALL_TARGETS ${UPNPC_INSTALL_TARGETS} testminixml minixmlvalid testupnpreplyparse testigddescparse testminiwget)
endif (UPNPC_BUILD_TESTS)