File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ RNG_CFLAGS ?= -O3 -D$(MACHINE) # -DLittleEndian has no effect
1010ifeq ($(ARCH), powerpc)
1111 RNG_CFLAGS += -DBIGENDIAN
1212 CFLAGS += -DBIGENDIAN
13- LIBS += $(XPRELIBS) # X11 backwards compatibility on 10.3.9
13+ ifeq ($(MACHINE), Darwin)
14+ LIBS += -lSM -lICE # X11 backwards compatibility on 10.3.9
15+ endif
1416endif
1517ifeq ($(ARCH), ppc64)
1618 RNG_CFLAGS += -DBIGENDIAN
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ CC=@CC@
1616CPP =@CPP@ -P
1717LD =ld
1818
19- CFLAGS+ = -D__NO_MATH_INLINES
19+ CFLAGS += -O2 -D__NO_MATH_INLINES
2020
2121RANLIB =@RANLIB@
2222AR =ar
@@ -31,11 +31,11 @@ ifneq (@X_LIB@,)
3131endif
3232
3333# X11's ICE, SM libraries break netcdf on OSX
34- # (needed for backward compatibility? )
34+ # (uncomment if needed for backward compatibility)
3535XPRELIBS =@X_PRE_LIBS@
36- ifneq ($(MACHINE ) , Darwin)
37- LIBS += $(XPRELIBS)
38- endif
36+ # ifneq ($(MACHINE), Darwin)
37+ # LIBS += $(XPRELIBS)
38+ # endif
3939
4040
4141# TODO:
You can’t perform that action at this time.
0 commit comments