[Icecast-dev] libshout mingw compatbility

LRN lrn1986 at gmail.com
Fri Apr 5 23:07:33 PDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

A couple of one-liners. One restricts the use of the os.h to msvc,
since mingw can use config.h. The other adds -no-undefined to LDFLAGS
(no idea what the impact on non-PE OSes will be, but unless undefined
symbols in libshout are needed by design, -no-undefined should be safe).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRX7ulAAoJEOs4Jb6SI2CwWKQIAKc8RiUSa9f71Olhj1EtVTOY
cHbjZq6k4dyYTxq3t9eEIkYWHLHZNmflYrA5vtm8POucfsYG7ync3BT4Cw70dmyv
ws4IiZsLzMFtdMRhR2YMzJGOcja6fhO7Kh/WUBtQkAffIEbnrOUk8YxTzt/qrZOw
zEd9YB0/7IKnKkbZn5NIg2a5HSypeifj7xj/wpP+NpeJcOpxWRmEjh8GJvjTsl0I
deA4ba5EyuomSY8ymCe/OwrT52yyKxGpoCVUaubGWYNh2DYARGIbSk6vjGIGA1QC
KcQH5iyso3esCBCZnDfpCpLfzxfq3dWlI7OmTeAm6HUAYiLI/cn6GnWefFHM9qU=
=BN/j
-----END PGP SIGNATURE-----
-------------- next part --------------
--- libshout-2.2.2/src/Makefile.am.orig	2012-04-04 20:01:57 +0400
+++ libshout-2.2.2/src/Makefile.am	2012-04-04 20:07:34 +0400
@@ -18,7 +18,7 @@
 SUBDIRS = avl net timing httpp $(MAYBE_THREAD)
 
 lib_LTLIBRARIES = libshout.la
-libshout_la_LDFLAGS = -version-info 5:0:2
+libshout_la_LDFLAGS = -version-info 5:0:2 -no-undefined
 
 EXTRA_DIST = theora.c speex.c
 noinst_HEADERS = shout_ogg.h shout_private.h util.h
-------------- next part --------------
--- libshout-2.2.2/include/shout/shout.h.in.orig	2005-06-28 01:33:21 +0400
+++ libshout-2.2.2/include/shout/shout.h.in	2012-04-04 19:32:18 +0400
@@ -22,7 +22,7 @@
 #define __LIBSHOUT_SHOUT_H__
 
 #include <sys/types.h>
-#ifdef WIN32
+#ifdef _MSC_VER
 #include <os.h>
 #endif
 


More information about the Icecast-dev mailing list