Skip to content

Commit 93785e3

Browse files
mshinwellpoechsel
authored andcommitted
flambda-backend: To upstream: export-dynamic for otherlibs/dynlink/ via the natdynlinkops files (still needs .gitignore + way of generating these files)
1 parent 63db8c1 commit 93785e3

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,8 @@ _build
264264
/yacc/ocamlyacc
265265
/yacc/version.h
266266
/yacc/.gdb_history
267+
268+
/otherlibs/dynlink/natdynlinkops
269+
/otherlibs/dynlink/natdynlinkops1
270+
/otherlibs/dynlink/natdynlinkops2
271+

otherlibs/dynlink/dune

+4-4
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@
209209
(rule
210210
(targets dynlink.cma)
211211
(deps dynlink_internal.cma)
212-
;; XXX the -Wl,-E is Linux-specific
213212
(action
214213
(run %{ocamlc}
215214
-nostdlib
216215
-g -a
216+
%{read:natdynlinkops1}
217+
%{read:natdynlinkops2}
217218
-o dynlink.cma
218-
-ccopt -Wl,-E
219219
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Binutils.cmo
220220
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Local_store.cmo
221221
.dynlink_compilerlibs.objs/byte/dynlink_compilerlibs__Build_path_prefix_map.cmo
@@ -271,13 +271,13 @@
271271
(rule
272272
(targets dynlink.cmxa dynlink.a)
273273
(deps dynlink_internal.cmxa)
274-
;; XXX the -Wl,-E is Linux-specific
275274
(action
276275
(run %{ocamlopt}
277276
-nostdlib
278277
-g -a
278+
%{read:natdynlinkops1}
279+
%{read:natdynlinkops2}
279280
-o dynlink.cmxa
280-
-ccopt -Wl,-E
281281
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Binutils.cmx
282282
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Local_store.cmx
283283
.dynlink_compilerlibs.objs/native/dynlink_compilerlibs__Build_path_prefix_map.cmx

0 commit comments

Comments
 (0)