Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tommy Olofsson
LabComm
Commits
f90d1486
Commit
f90d1486
authored
Jun 23, 2016
by
Anders Blomdell
Browse files
Fixed COMPAT symbol
parent
31f46bb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/c/os_compat.mk
View file @
f90d1486
...
...
@@ -12,12 +12,12 @@ LDLIBS=-llabcomm$(LIBVERSION)
ifeq
($(CROSS_COMPILE),i586-wrs-vxworks-)
ALL_DEPS
:=
$(
filter-out
%.so,
$(ALL_DEPS)
)
# PIC is only supported for RTPs
CFLAGS
:=
$(CFLAGS)
-DLABCOMM_COMPAT
=
\"
labcomm
$(VERSION)
_compat_vxworks.h
\"
CFLAGS
:=
$(CFLAGS)
-DLABCOMM
2014
_COMPAT
=
\"
labcomm
$(VERSION)
_compat_vxworks.h
\"
else
ifeq
($(UNAME_S),Linux)
LDLIBS
+=
-lrt
MAKESHARED
=
gcc
-o
$1
-shared
-Wl
,-soname,
$2
$3
-lc
-lrt
else
ifeq
($(UNAME_S),Darwin)
CFLAGS
+=
-DLABCOMM_COMPAT
=
\"
labcomm
$(VERSION)
_compat_osx.h
\"
\
CFLAGS
+=
-DLABCOMM
2014
_COMPAT
=
\"
labcomm
$(VERSION)
_compat_osx.h
\"
\
-DLABCOMM_OS_DARWIN
=
1
\
-Wno-unused-function
MAKESHARED
=
clang
-o
$1
-shared
-Wl
,-install_name,
$2
$3
-lc
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment