FreeBSD Port: xmlrpc-c-devel-1.11.00_2

Schroeder, Chad Chad.Schroeder at lodgenet.com
Tue Jan 20 08:42:00 PST 2009


I would like to submit the following.  This patch (against trunk) allows
for the shared libraries
to be built and installed on a FreeBSD system.

If you have any questions, please let me know.

Thank you,
Chad

Index: config.mk.in
===================================================================
--- config.mk.in        (revision 1615)
+++ config.mk.in        (working copy)
@@ -232,6 +232,18 @@
   NEED_WL_RPATH=yes
 endif
 
+ifeq ($(findstring freebsd,$(HOST_OS)),freebsd)
+  SHARED_LIB_TYPE = unix
+  SHLIB_SUFFIX = so
+  MUST_BUILD_SHLIB = Y
+  MUST_BUILD_SHLIBLE = Y
+  shlibfn = $(1:%=%.$(SHLIB_SUFFIX).$(MAJ).$(MIN))
+  shliblefn = $(1:%=%.$(SHLIB_SUFFIX))
+  CFLAGS_SHLIB = -fpic
+  LDFLAGS_SHLIB = -shared -Wl,-soname,$(SONAME) $(SHLIB_CLIB)
+  NEED_WL_RPATH=yes
+endif
+
 ifeq ($(HOST_OS),dragonfly)
   SHARED_LIB_TYPE = unix
   MUST_BUILD_SHLIB = Y


Chad J. Schroeder
Software Systems Engineer
Engineering & Technology Development
LodgeNet Interactive Corporation
3900 West Innovation Street
Sioux Falls, SD 57107-7002
Phone: 605-988-1489
Fax: 605-988-1491
chad.schroeder at lodgenet.com


This e-mail and attached files contain LodgeNet confidential information
intended for the exclusive use of the individual(s) to whom addressed.
If you are not the intended recipient, please immediately delete this
e-mail (and attached files) and treat the information as confidential.




More information about the freebsd-ports mailing list