-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re mk cross build2 #63
Conversation
Set LIBRE_SO by means of LIBRE_PATH in lib, which is a more common location.
e7b1ea3
to
fa4869b
Compare
3a83244
to
93cf8d2
Compare
Setting SYSROOT should be enough to set all paths for libre resulting in correct CFLAGS and LFLAGS. We do this only if SYSROOT is not the default path "/usr".
aef9277
to
388cd36
Compare
mk/re.mk
Outdated
LIBRE_PATH := $(shell [ -f $(SYSROOT)/include/re/re.h ] && \ | ||
echo "$(SYSROOT)") | ||
endif | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should guarantee the prioritised order for relative ../re
path search,
Like this (untested):
ifeq ($(LIBRE_PATH),)
LIBRE_PATH := $(shell [ -d ../re ] && echo "../re")
endif
ifeq ($(LIBRE_PATH),)
ifneq ($(SYSROOT),/usr)
LIBRE_PATH := $(shell [ -f $(SYSROOT)/include/re/re.h ] && \
echo "$(SYSROOT)")
endif
endif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the new order we should document above:
- relative path (../re)
- custom sysroot
- local installation (/usr/local)
- system installation (/usr)
The new prio order for re dir is: - relative path (../re) - custom SYSROOT - local installation (/usr/local) - system installation (/usr)
@sreimers The prio order for re makes sense.
STATIC is not used in retest. |
The build is error is unrelated. It looks like a race condition since the jbuf changes (occurs sometimes):
I had no time to investigate.
Good point, i will remove. |
Allows a cross compilation build by only setting SYSROOT.