Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Commit

Permalink
add site specific patch for EPICS 7.0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jeonghanlee committed Oct 8, 2018
1 parent 7105456 commit 7be60a1
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
15 changes: 15 additions & 0 deletions patch/Site/R7.0.1.1/enable_new_dtags.p0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git configure/CONFIG.gnuCommon configure/CONFIG.gnuCommon
index 0253915..4bde87a 100644
--- configure/CONFIG.gnuCommon
+++ configure/CONFIG.gnuCommon
@@ -50,8 +50,8 @@ STATIC_LDFLAGS_YES = -static
STATIC_LDFLAGS_NO =

SHRLIB_CFLAGS = -fPIC
-SHRLIB_LDFLAGS = -shared -fPIC
-LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC
+SHRLIB_LDFLAGS = -shared -fPIC -Wl,--enable-new-dtags
+LOADABLE_SHRLIB_LDFLAGS = -shared -fPIC -Wl,--enable-new-dtags

GNU_LDLIBS_YES = -lgcc

13 changes: 13 additions & 0 deletions patch/Site/R7.0.1.1/os_class.p0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git configure/CONFIG_APP_INCLUDE configure/CONFIG_APP_INCLUDE
index 8b4bd7d..21de4ad 100644
--- configure/CONFIG_APP_INCLUDE
+++ configure/CONFIG_APP_INCLUDE
@@ -19,7 +19,7 @@ define RELEASE_FLAGS_template
$(1)_LIB = $$(wildcard $$(strip $$($(1)))/lib/$(T_A))
SHRLIB_SEARCH_DIRS += $$($(1)_LIB)
RELEASE_INCLUDES += $$(addprefix -I,$$(wildcard $$(strip $$($(1)))/include/compiler/$(CMPLR_CLASS)))
- RELEASE_INCLUDES += $$(addprefix -I,$$(wildcard $$(strip $$($(1)))/include/os/$(OS_CLASS)))
+ RELEASE_INCLUDES += $$(addprefix -I,$$(wildcard $$(strip $$($(1)))/include/os/$$(OS_CLASS)))
RELEASE_INCLUDES += $$(addprefix -I,$$(wildcard $$(strip $$($(1)))/include))
RELEASE_DBD_DIRS += $$(wildcard $$(strip $$($(1)))/dbd)
RELEASE_DB_DIRS += $$(wildcard $$(strip $$($(1)))/db)
18 changes: 18 additions & 0 deletions patch/Site/R7.0.1.1/ppc64e6500_epics_host_arch.p0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git startup/EpicsHostArch.pl startup/EpicsHostArch.pl
index 09f7ffd..cb9dfec 100755
--- startup/EpicsHostArch.pl
+++ startup/EpicsHostArch.pl
@@ -40,7 +40,12 @@ sub GetEpicsHostArch { # no args
elsif ($cpu =~ m/i386/) { return "darwin-x86"; }
elsif ($cpu =~ m/x86_64/) { return "darwin-x86"; }
else { return "unsupported"; }
- } else { return "unsupported"; }
+ } elsif ($arch =~m/powerpc64-linux/) {
+ my($kernel, $hostname, $release, $version, $cpu) = POSIX::uname();
+ if ($cpu =~ m/ppc64/) { return "linux-ppc64e6500"; }
+ else { return "unsupported"; }
+ }
+ else { return "unsupported"; }
}

#EOF EpicsHostArch.pl

0 comments on commit 7be60a1

Please sign in to comment.