diff options
author | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-04-09 03:51:17 +0000 |
---|---|---|
committer | schnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2008-04-09 03:51:17 +0000 |
commit | d0a4fb431521ccc49866bfb4275d5cb27f62f85a (patch) | |
tree | aa2b9b1252d8d55030b5036ca0a71b4f6112f012 /lib/make/make.thornlib | |
parent | 284f9472ac6d354a306ab383f6c684485b273693 (diff) |
Decrease the maximum linker command line length on AIX to 200,
increase it on all other systems to 10000.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4481 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/make.thornlib')
-rw-r--r-- | lib/make/make.thornlib | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/make/make.thornlib b/lib/make/make.thornlib index f54e0ca7..87dd6ffa 100644 --- a/lib/make/make.thornlib +++ b/lib/make/make.thornlib @@ -126,7 +126,16 @@ $(addsuffix /make.identity, $(SUBDIRS) $(THORNBINDINGS)): # be used via xargs. OBJS-words = $(words $(OBJS)) -OBJS-words-max = 1000 + +ifeq ($(shell uname),AIX) +# Be conservative about the maximum number of objects that can be +# handled at once. AIX has a command line length limit of about +# 32000. Each object's path name may be about 100 characters long. +OBJS-words-max = 200 +else +# Assume that the system has no limit to speak of. +OBJS-words-max = 10000 +endif ifeq ($(shell test $(OBJS-words) -le $(OBJS-words-max) && echo 1), 1) |