Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alexbiehl-gc
GHC
Commits
727be8f2
Commit
727be8f2
authored
24 years ago
by
Reuben Thomas
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-04-14 15:55:00 by rrt]
Fixed -split-objs and removed last vestiges of dLL_ifs.hi.
parent
61115568
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mk/config.mk.in
+6
-2
6 additions, 2 deletions
mk/config.mk.in
mk/suffix.mk
+4
-2
4 additions, 2 deletions
mk/suffix.mk
mk/target.mk
+3
-4
3 additions, 4 deletions
mk/target.mk
with
13 additions
and
8 deletions
mk/config.mk.in
+
6
−
2
View file @
727be8f2
...
...
@@ -216,11 +216,15 @@ endif
# things (incl "+") happens when compiling with this compiler
GhcLibHcOpts=-O
SplitObjs = YES
# Win32 only: Enable the RTS and libraries to be built as DLLs
#
#
Don't split object files for libs if we're building DLLs
EnableWin32DLLs=@EnableWin32DLLs@
ifeq "($EnableWin32DLLs)" "YES"
SplitObjs=NO
endif
# Strip local symbols from libraries? This can make the libraries smaller,
# but makes debugging somewhat more difficult. Doesn't work with all ld's.
...
...
This diff is collapsed.
Click to expand it.
mk/suffix.mk
+
4
−
2
View file @
727be8f2
...
...
@@ -35,8 +35,10 @@ HC_SPLIT_PRE= \
$(
FIND
)
$(
basename
$@
)
-name
'*.
$(
way_
)
o'
-print
| xargs
$(
RM
)
__rm_food
;
fi
HC_SPLIT_POST
=
touch
$@
HC_PRE__
=
$(
patsubst %,
$(
HC_SPLIT_PRE
)
;
,
$(
filter
-split-objs
,
$(
HC_OPTS
)))
HC_POST__
=
$(
patsubst %,
$(
HC_SPLIT_POST
)
;
,
$(
filter
-split-objs
,
$(
HC_OPTS
)))
ifeq
"$(SplitObjs)" "YES"
HC_PRE__
=
$(
HC_SPLIT_PRE
)
;
HC_POST__
=
$(
HC_SPLIT_POST
)
;
endif
SRC_HC_POST_OPTS
+=
$(
HC_POST__
)
SRC_HC_PRE_OPTS
+=
$(
HC_PRE__
)
...
...
This diff is collapsed.
Click to expand it.
mk/target.mk
+
3
−
4
View file @
727be8f2
...
...
@@ -449,7 +449,7 @@ endef
#
ifneq
"$(HS_SRCS)" ""
if
n
eq
"$(
filter -s
plit
-o
bjs
,$(HC_OPTS)
)" ""
ifeq
"$(
S
plit
O
bjs)" "
YES
"
define
BUILD_LIB
$(RM)
$@
TMPDIR
=
$(
TMPDIR
);
export
TMPDIR
;
$(
FIND
)
$(
patsubst %.
$(
way_
)
o,%,
$(
LIBOBJS
))
-name
'*.
$(
way_
)
o'
-print
| xargs ar q
$@
...
...
@@ -463,7 +463,7 @@ endif
#
ifeq
"$(StripLibraries)" "YES"
if
n
eq
"$(
filter -s
plit
-o
bjs
,$(HC_OPTS)
)" ""
ifeq
"$(
S
plit
O
bjs)" "
YES
"
SRC_HC_POST_OPTS
+=
\
for
i
in
$(
basename
$@
)
/
*
;
do
\
ld
-r
-x
-o
$$
i.tmp
$$
i
;
\
...
...
@@ -495,8 +495,7 @@ DLL_IMPLIB_NAME = $(patsubst %.a, %_imp.a, $(LIBRARY))
endif
$(DLL_NAME)
::
$(LIBRARY)
$(
BLD_DLL
)
--output-lib
$(
DLL_IMPLIB_NAME
)
-o
$(
DLL_NAME
)
$(
LIBRARY
)
$(
BLD_DLL_OPTS
)
touch
dLL_ifs.hi
$(
BLD_DLL
)
--output-lib
$(
DLL_IMPLIB_NAME
)
-o
$(
DLL_NAME
)
$(
LIBRARY
)
$(
BLD_DLL_OPTS
)
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