16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 include ../../make-rules/shared-macros.mk |
23 include ../../make-rules/shared-macros.mk |
24 |
24 |
25 COMPONENT_NAME= ilmbase |
25 COMPONENT_NAME= ilmbase |
26 COMPONENT_VERSION= 1.0.1 |
26 COMPONENT_VERSION= 1.0.1 |
34 include ../../make-rules/configure.mk |
34 include ../../make-rules/configure.mk |
35 include ../../make-rules/ips.mk |
35 include ../../make-rules/ips.mk |
36 |
36 |
37 PATCH_LEVEL = 0 |
37 PATCH_LEVEL = 0 |
38 |
38 |
39 # configure seems to add -nolibs, so we add that back to the C++ runtime and |
|
40 # stdlib |
|
41 CXXFLAGS += $(studio_CXXLIB_CSTD) |
|
42 # there seems to be no other way to enable large files support |
39 # there seems to be no other way to enable large files support |
43 CXXFLAGS += $(CPP_LARGEFILES) |
40 CXXFLAGS += $(CPP_LARGEFILES) |
44 # it seems that --with-pic doesn't get PIC flags to the C++ compiler |
41 # it seems that --with-pic doesn't get PIC flags to the C++ compiler |
45 CXXFLAGS += $(CC_PIC) |
42 CXXFLAGS += $(CC_PIC) |
46 # libtools seems to be forcing -nolibs, so we have to add back libc and libm |
43 # libtools seems to be forcing -nolibs, so we have to add back libc, libm, |
47 LDFLAGS += -lc -lm |
44 # libCstd and libCrun. The last two are needed because with Studio 12.2 |
|
45 # (and beyond), there is a bug in the CC driver that is not correctly using |
|
46 # the '-library=Cstd,Crun' we are passing to it. |
|
47 LIBS += -lc -lm -lCstd -lCrun |
48 |
48 |
49 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
49 CONFIGURE_ENV += CFLAGS="$(CFLAGS)" |
50 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)" |
50 CONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)" |
51 CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)" |
51 CONFIGURE_ENV += LIBS="$(LIBS)" |
52 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
52 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)" |
53 |
53 |
54 CONFIGURE_OPTIONS += --disable-static |
54 CONFIGURE_OPTIONS += --disable-static |
55 CONFIGURE_OPTIONS += --enable-threading |
55 CONFIGURE_OPTIONS += --enable-threading |
56 CONFIGURE_OPTIONS += --enable-posix-sem |
56 CONFIGURE_OPTIONS += --enable-posix-sem |