Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
12569e6d
Commit
12569e6d
authored
1 year ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Use uname -m for any arch genwrap doesn't know about.
parent
99b915af
No related branches found
No related tags found
1 merge request
!463
MRC mods by Codefenix (2024-10-20)
Pipeline
#4130
passed
1 year ago
Stage: build
Changes
3
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/build/Common.gmake
+13
-12
13 additions, 12 deletions
src/build/Common.gmake
src/syncterm/CHANGES
+1
-0
1 addition, 0 deletions
src/syncterm/CHANGES
src/xpdev/genwrap.h
+5
-1
5 additions, 1 deletion
src/xpdev/genwrap.h
with
19 additions
and
13 deletions
src/build/Common.gmake
+
13
−
12
View file @
12569e6d
...
...
@@ -220,36 +220,37 @@ ifneq ($(os),win32)
endif
endif
machine
:= $(shell if uname -m | egrep -v "(i[3456789]*|x)86" > /dev/null; then uname -m | tr "[A-Z]" "[a-z]" | tr " " "_" ; fi)
machine
:= $(shell if uname -m | egrep "64" > /dev/null; then uname -m | tr "[A-Z]" "[a-z]" | tr " " "_" ; else echo $(machine) ; fi)
machine
_uname
:= $(shell if uname -m | egrep -v "(i[3456789]*|x)86" > /dev/null; then uname -m | tr "[A-Z]" "[a-z]" | tr " " "_" ; fi)
machine
_uname
:= $(shell if uname -m | egrep "64" > /dev/null; then uname -m | tr "[A-Z]" "[a-z]" | tr " " "_" ; else echo $(machine
_uname
) ; fi)
ifeq ($(os),darwin)
ifeq ("$(machine)","")
ifeq ("$(machine
_uname
)","")
ifeq ($(shell sysctl hw.optional.x86_64),hw.optional.x86_64: 1)
machine
:= x86_64
machine
_uname
:= x86_64
endif
endif
endif
ifeq ($(machine),x86_64)
machine := x64
ifeq ($(machine
_uname
),x86_64)
machine
_uname
:= x64
endif
CFLAGS += -fpic
ifeq ($(machine),sparc64)
ifeq ($(machine
_uname
),sparc64)
CFLAGS += -D__BIG_ENDIAN__
endif
ifeq ($(machine),sun4u)
ifeq ($(machine
_uname
),sun4u)
CFLAGS += -D__BIG_ENDIAN__
endif
ifeq ($(machine),power_macintosh)
ifeq ($(machine
_uname
),power_macintosh)
CFLAGS += -D__BIG_ENDIAN__
endif
ifeq ($(machine),mac68k)
ifeq ($(machine
_uname
),mac68k)
CFLAGS += -D__BIG_ENDIAN__
endif
ifeq ($(machine),)
ifeq ($(machine
_uname
),)
machine := $(os)
else
machine := $(os).$(machine)
machine := $(os).$(machine_uname)
CFLAGS += -DUNAME_ARCHITECTURE_DESC=$(machine_uname)
endif
ifeq ($(shell if [ -f /usr/include/inttypes.h ] ; then echo YES ; fi),YES)
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/CHANGES
+
1
−
0
View file @
12569e6d
...
...
@@ -15,6 +15,7 @@ On Windows, indicate "awareness" for "High DPI"
Prefer X11 mode over SDL mode
Fix scrolling with left/right margins
Resumed ZModem ETA estimation fix
Support PPM graphics
Version 1.1
-----------
...
...
This diff is collapsed.
Click to expand it.
src/xpdev/genwrap.h
+
5
−
1
View file @
12569e6d
...
...
@@ -203,7 +203,11 @@ extern "C" {
#elif defined(_M_IA64) || defined(__ia64__)
#define ARCHITECTURE_DESC "ia64"
#else
#error "Need to describe target architecture"
#ifdef UNAME_ARCHITECTURE_DESC
#define ARCHITECTURE_DESC UNAME_ARCHITECTURE_DESC
#else
#error "Need to describe target architecture"
#endif
#endif
/*********************/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment