OSDN Git Service

Fix for building a shared library and changing permissions
authorRavi K Yenduri <yenduri@pv.com>
Fri, 5 Dec 2008 15:20:25 +0000 (09:20 -0600)
committerRavi K Yenduri <yenduri@pv.com>
Fri, 5 Dec 2008 15:20:25 +0000 (09:20 -0600)
of files in <opencore>/tools_v2/build/bin and

13 files changed:
tools_v2/build/bin/archtype [changed mode: 0644->0755]
tools_v2/build/bin/cc_install [changed mode: 0644->0755]
tools_v2/build/bin/cc_mkdir [changed mode: 0644->0755]
tools_v2/build/bin/cc_pwd [changed mode: 0644->0755]
tools_v2/build/bin/cc_rm [changed mode: 0644->0755]
tools_v2/build/bin/cleanup [changed mode: 0644->0755]
tools_v2/build/bin/cleanup.ksh [changed mode: 0644->0755]
tools_v2/build/bin/find_dir [changed mode: 0644->0755]
tools_v2/build/bin/pv_defines [changed mode: 0644->0755]
tools_v2/build/bin/recursive_make.bat [changed mode: 0644->0755]
tools_v2/build/make/linux_g++_library.mak
tools_v2/build/make/linux_g++_module.mak
tools_v2/build/make/module.mk

old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index 6804729..ca12b6d 100644 (file)
@@ -16,6 +16,6 @@ SHARED_LDFLAGS = -shared
 SONAME_ARG = -Wl,-h,$(SONAME)
 
 #Make all warnings into errors.
-FLAG_COMPILE_WARNINGS_AS_ERRORS = -Werror
+#FLAG_COMPILE_WARNINGS_AS_ERRORS = -Werror
 
 include $(MK)/linux_library.mk
index 75a1df5..d23f3ff 100644 (file)
@@ -9,7 +9,8 @@ BUILD_ARCH = $(ARCHITECTURE)
 override CXX = g++
 
 SHARED_LINK = g++
-SHARED_LDFLAGS = -shared
-SONAME_ARG = -nostdlib -Wl-soname,$(SONAME) -Wl,-shared,-Bsymbolic --no-undefined -Wl,--whole-archive
+SHARED_LDFLAGS = -shared -Wl,-Bsymbolic --no-undefined -Wl,--whole-archive
+SONAME_ARG = -Wl-soname,$(SONAME) 
+POST_SHARED_LDFLAGS = -Wl,--no-whole-archive
 
 include $(MK)/module.mk
index 45dc80f..984e50f 100644 (file)
@@ -59,7 +59,7 @@ $(SOTARGET):
 
 define build_shared
        -$(RM) $@
-       $(SHARED_LINK) $(SONAME_ARG) $(XLDFLAGS) -o $@ $(LIBS_LINKED) $(MODS_LINKED) $(POST_LIBDIRS)
+       $(SHARED_LINK) $(SONAME_ARG) $(XLDFLAGS) -o $@ $(LIBS_LINKED) $(MODS_LINKED) $(POST_LIBDIRS) $(POST_SHARED_LDFLAGS)
        -chmod g+w $@
 endef
 .PHONY:: entire