unxfbsd.mk (7871dc3e) | unxfbsd.mk (a8e4828d) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 66 unchanged lines hidden (view full) --- 75.IF "$(ENABLE_SYMBOLS)"=="SMALL" 76CFLAGSENABLESYMBOLS=-g1 77.ELSE 78CFLAGSENABLESYMBOLS=-g # was temporarily commented out, reenabled before Beta 79 80.ENDIF 81 82# flags for the C++ Compiler | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 66 unchanged lines hidden (view full) --- 75.IF "$(ENABLE_SYMBOLS)"=="SMALL" 76CFLAGSENABLESYMBOLS=-g1 77.ELSE 78CFLAGSENABLESYMBOLS=-g # was temporarily commented out, reenabled before Beta 79 80.ENDIF 81 82# flags for the C++ Compiler |
83CFLAGSCC= -pipe $(ARCH_FLAGS) | 83CFLAGSCC= -pipe $(ARCH_FLAGS) |
84# Flags for enabling exception handling 85CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs 86# Flags for disabling exception handling 87CFLAGS_NO_EXCEPTIONS=-fno-exceptions 88 89# -fpermissive should be removed as soon as possible | 84# Flags for enabling exception handling 85CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs 86# Flags for disabling exception handling 87CFLAGS_NO_EXCEPTIONS=-fno-exceptions 88 89# -fpermissive should be removed as soon as possible |
90CFLAGSCXX= -pipe $(ARCH_FLAGS) | 90CFLAGSCXX= -pipe $(ARCH_FLAGS) |
91.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" 92CFLAGSCXX += -fvisibility-inlines-hidden 93.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" 94 95# Compiler flags for compiling static object in multi threaded environment with graphical user interface 96CFLAGSOBJGUIMT= 97# Compiler flags for compiling static object in multi threaded environment with character user interface 98CFLAGSOBJCUIMT= --- 32 unchanged lines hidden (view full) --- 131LINK*=$(CXX) 132LINKC*=$(CC) 133 134# default linker flags 135.IF "$(SYSBASE)"!="" 136LINKFLAGS_SYSBASE:=-Wl,--sysroot=$(SYSBASE) 137.ENDIF # "$(SYSBASE)"!="" 138LINKFLAGSDEFS*=-Wl,-z,defs | 91.IF "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" 92CFLAGSCXX += -fvisibility-inlines-hidden 93.ENDIF # "$(HAVE_GCC_VISIBILITY_FEATURE)" == "TRUE" 94 95# Compiler flags for compiling static object in multi threaded environment with graphical user interface 96CFLAGSOBJGUIMT= 97# Compiler flags for compiling static object in multi threaded environment with character user interface 98CFLAGSOBJCUIMT= --- 32 unchanged lines hidden (view full) --- 131LINK*=$(CXX) 132LINKC*=$(CC) 133 134# default linker flags 135.IF "$(SYSBASE)"!="" 136LINKFLAGS_SYSBASE:=-Wl,--sysroot=$(SYSBASE) 137.ENDIF # "$(SYSBASE)"!="" 138LINKFLAGSDEFS*=-Wl,-z,defs |
139LINKFLAGSRUNPATH_URELIB=-Wl,-rpath,\''$$ORIGIN'\' 140LINKFLAGSRUNPATH_UREBIN=-Wl,-rpath,\''$$ORIGIN/../lib:$$ORIGIN'\' | 139LINKFLAGSRUNPATH_URELIB=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN'\' 140LINKFLAGSRUNPATH_UREBIN=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN/../lib:$$ORIGIN'\' |
141 #TODO: drop $ORIGIN once no URE executable is also shipped in OOo | 141 #TODO: drop $ORIGIN once no URE executable is also shipped in OOo |
142LINKFLAGSRUNPATH_OOO=-Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\' 143LINKFLAGSRUNPATH_SDK=-Wl,-rpath,\''$$ORIGIN/../../ure-link/lib'\' 144LINKFLAGSRUNPATH_BRAND=-Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../basis-link/program:$$ORIGIN/../basis-link/ure-link/lib'\' | 142LINKFLAGSRUNPATH_OOO=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../ure-link/lib'\' 143LINKFLAGSRUNPATH_SDK=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN/../../ure-link/lib'\' 144LINKFLAGSRUNPATH_BRAND=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN:$$ORIGIN/../basis-link/program:$$ORIGIN/../basis-link/ure-link/lib'\' |
145LINKFLAGSRUNPATH_OXT= | 145LINKFLAGSRUNPATH_OXT= |
146LINKFLAGSRUNPATH_BOXT=-Wl,-rpath,\''$$ORIGIN/../../../basis-link/program'\' | 146LINKFLAGSRUNPATH_BOXT=-Wl,-z,origin -Wl,-rpath,\''$$ORIGIN/../../../basis-link/program'\' |
147LINKFLAGSRUNPATH_NONE= | 147LINKFLAGSRUNPATH_NONE= |
148LINKFLAGS=-Wl,-z,combreloc $(LINKFLAGSDEFS) $(LINKFLAGS_SYSBASE) | 148LINKFLAGS=-Wl,-z,combreloc $(LINKFLAGSDEFS) $(LINKFLAGS_SYSBASE) |
149 150# linker flags for linking applications 151LINKFLAGSAPPGUI= -Wl,-export-dynamic -Wl,--noinhibit-exec \ 152 -Wl,-rpath-link,$(LB):$(SOLARLIBDIR):$(SYSBASE)/lib:$(SYSBASE)/usr/lib 153LINKFLAGSAPPCUI= -Wl,-export-dynamic -Wl,--noinhibit-exec \ 154 -Wl,-rpath-link,$(LB):$(SOLARLIBDIR):$(SYSBASE)/lib:$(SYSBASE)/usr/lib 155 156# linker flags for linking shared libraries --- 25 unchanged lines hidden (view full) --- 182 183.IF "$(ALLOC)" == "TCMALLOC" 184STDLIBGUIMT+=-ltcmalloc 185STDLIBCUIMT+=-ltcmalloc 186STDSHLGUIMT+=-ltcmalloc 187STDSHLCUIMT+=-ltcmalloc 188.ENDIF 189 | 149 150# linker flags for linking applications 151LINKFLAGSAPPGUI= -Wl,-export-dynamic -Wl,--noinhibit-exec \ 152 -Wl,-rpath-link,$(LB):$(SOLARLIBDIR):$(SYSBASE)/lib:$(SYSBASE)/usr/lib 153LINKFLAGSAPPCUI= -Wl,-export-dynamic -Wl,--noinhibit-exec \ 154 -Wl,-rpath-link,$(LB):$(SOLARLIBDIR):$(SYSBASE)/lib:$(SYSBASE)/usr/lib 155 156# linker flags for linking shared libraries --- 25 unchanged lines hidden (view full) --- 182 183.IF "$(ALLOC)" == "TCMALLOC" 184STDLIBGUIMT+=-ltcmalloc 185STDLIBCUIMT+=-ltcmalloc 186STDSHLGUIMT+=-ltcmalloc 187STDSHLCUIMT+=-ltcmalloc 188.ENDIF 189 |
190.IF "$(HAVE_LD_HASH_STYLE)" == "TRUE" 191LINKFLAGS += -Wl,--hash-style=both 192.ELSE 193LINKFLAGS += -Wl,-zdynsort 194.ENDIF 195 | |
196# libraries for linking applications 197STDLIBGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed 198STDLIBCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed 199# libraries for linking shared libraries 200STDSHLGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed 201STDSHLCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed 202 203X11LINK_DYNAMIC = -Wl,--as-needed -lXext -lX11 -Wl,--no-as-needed --- 44 unchanged lines hidden --- | 190# libraries for linking applications 191STDLIBGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed 192STDLIBCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed 193# libraries for linking shared libraries 194STDSHLGUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed 195STDSHLCUIMT+=-Wl,--as-needed $(PTHREAD_LIBS) -lm -Wl,--no-as-needed 196 197X11LINK_DYNAMIC = -Wl,--as-needed -lXext -lX11 -Wl,--no-as-needed --- 44 unchanged lines hidden --- |