25114020 libproxy needs tweaks to build on S11
authorJohn Beck <John.Beck@Oracle.COM>
Thu, 17 Nov 2016 11:58:11 -0800
changeset 7347 9b7ef35cd44d
parent 7346 c08929021b90
child 7348 9955f795062e
25114020 libproxy needs tweaks to build on S11
components/desktop/libproxy/Makefile
--- a/components/desktop/libproxy/Makefile	Thu Nov 03 12:28:50 2016 -0700
+++ b/components/desktop/libproxy/Makefile	Thu Nov 17 11:58:11 2016 -0800
@@ -61,6 +61,12 @@
 # Always build pacrunner as a module.
 CMAKE_OPTIONS += -DBIPR=ON
 
+ifeq ($(OS_VERSION),5.11)
+LDFLAGS +=       -lsocket -lnsl -lxnet
+CMAKE_OPTIONS += -DCMAKE_SHARED_LINKER_FLAGS="$(LDFLAGS)"
+CMAKE_OPTIONS += -DPERL_EXECUTABLE="$(PERL)"
+endif
+
 # Assumes "make" is GNU make, turns into fork bomb if it finds Solaris make
 COMPONENT_BUILD_ENV += PATH="/usr/gnu/bin:$(PATH)"