components/python/pyopenssl/Makefile
changeset 706 6e61f0012046
parent 609 775168282b2f
child 800 2ad056ed89ec
--- a/components/python/pyopenssl/Makefile	Thu Feb 23 15:58:00 2012 -0800
+++ b/components/python/pyopenssl/Makefile	Fri Feb 24 13:30:24 2012 -0800
@@ -18,7 +18,7 @@
 #
 # CDDL HEADER END
 #
-# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
 #
 include ../../../make-rules/shared-macros.mk
 
@@ -36,6 +36,9 @@
 include $(WS_TOP)/make-rules/setup.py.mk
 include $(WS_TOP)/make-rules/ips.mk
 
+# build modules PIC (needed for Python 2.7)
+CFLAGS += $(CC_PIC)
+
 # common targets
 build:		$(BUILD_32_and_64)